Closed stakach closed 2 years ago
You know, I actually did this on LuckyEnv https://github.com/luckyframework/lucky_env/blob/7b10812688ec682fb86e9eeae640a63bc4500fd4/src/lucky_env.cr#L6 but I was curious as to whether this increases compile time or not... Since the Lucky ecosystem has so many shards, if they all did this, does that increase the compile time to a noticeable difference? Or is it like an extra 2ms for all of them?
I changed to using the macro to maintain compatibility with wyhaines/defined.cr Definitely not a noticeable difference in compile time, with multiple shards running this and OS caches still being hot the execution is extremely fast - although my dev laptop is a beast 😅
no more manual management of version constant