Need simple script to read 1 ppm signal

so is there no chance to make it faster?

All that the interrupt handler should do is set a flag that gets looked at on the next pass through loop.