What is Nostr?
Jonathan Wight /
npub1x37…7uvj
2024-12-13 18:51:04

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
Author Public Key
npub1x37lxlm7xlcfkxqsc94ur8zlkax50sk8h7lzjlhvjcdkymt0gdvqe87uvj