top | item 46381295

(no title)

richardw | 2 months ago

Not terribly niche. All config that isn’t environment-specific and is used in inner loops or at startup. It’s even got a test for serialised values so can be used to speed your case up:

https://github.com/sebastienros/comptime/blob/main/test/Comp...

But you need to be sure you won’t want to change without compiling.

discuss

order

eterm|2 months ago

Well it also needs to be something that you need to generate/calculate, otherwise you would just write by hand the code that comptime outputs.