Hacker News new | ask | show | jobs
by hogliux 2791 days ago
Both your approach and the `semi::static_map` will generate the same type of load instruction. In both cases, the compiler knows the offset of the values in memory at compile-time. The number of symbols is not really important here.