3 ms·
I think if you care that much, you're writing asm. If you care slightly less, you write C that looks constant time. Inspecting generated assembly is a strange
by tedunangst 11y ago
I think if you care that much, you're writing asm. If you care slightly less, you write C that looks constant time.
Inspecting generated assembly is a strange middle ground between too fragile for the paranoid and too much work for the not paranoid.
- NateLawson 11y agoGreat point. Why check what might later change when you can enforce it now and going forward?
- vardump 11y agoConstant time C? Some instructions have data dependent execution times, even when no branches are used. Some memory operations have also data dependent timings. I don't think constant time C is feasible.