A little update to the topic - I created an application where I can disable parts of the code through the Case structure and check for timing. First, I fully understand that adding ten new case structures affects the execution a lot. But still, outcome is unexpected:
Everything disabled: 10 ticks per loop
Enabling FIFO writes (9 elements): 36 ticks per loop
Also enabling filters: 75 ticks per loop
Also enabling flagging (custom bitwise data manipulation): 105 ticks per loop
Also enabling input reading: 782 ticks per loop
Disabling everything but input reading: 392 ticks per loop
After enabling input reading, loop is timed by input signal (which runs at 392 ticks per one sample). It is like enabling input reading slows everything down about 6 times. Any ideas now?
![Thomas444_0-1580739561823.png Thomas444_0-1580739561823.png]()