Jonathan Wight on Nostr: I have portions of my code that are far too slow when compiled as Debug. This algo ...
I have portions of my code that are far too slow when compiled as Debug.
This algo takes 800 ms in debug mode but less than ~5ms in release(optimised) mode.
I would _love_ to just compile that one portion of code as release code.
I tried to move the code into own SPM module and override the swift flags to compile with -O but it didn't work…
The only option i can think of is moving it into its own pre-compiled binary. But that's horrible.
Ideas from peanut gallery?i
This algo takes 800 ms in debug mode but less than ~5ms in release(optimised) mode.
I would _love_ to just compile that one portion of code as release code.
I tried to move the code into own SPM module and override the swift flags to compile with -O but it didn't work…
The only option i can think of is moving it into its own pre-compiled binary. But that's horrible.
Ideas from peanut gallery?i