Arduino UNO + HC05 => Code runs with Delay / slow

Probably serial timeout. Could be while reading from USB serial or HC05 serial.

Try setting the timeouts to 0 and 2000 for USB serial and later HC05 serial to see which affects the delay you observe.