4 ms·
I wonder if a "release" build flag makes sense for go. There is so much optimisation potential left on the table for the sake of build time. The current build
by monlockandkey 3y ago
I wonder if a "release" build flag makes sense for go. There is so much optimisation potential left on the table for the sake of build time.
The current build should be "Dev" and a new "release" should be introduced.
- tgv 3y agoNot bad, but build should default to release, and dev builds should be opt-in. You should never accidentally test against a non-production build.
- packetlost 3y agoIt's a tough problem, because the situations in which fast build times matter are mostly during local development and test. Only at really insane scales do they become a problem for production releasing and CI/automated testing. An environment variable that can be set on a dev workstation globally (and overridden with CLI flags) would probably be sufficient for opt-in