← Back to context

Comment by amarant

5 years ago

This is slightly faster I guess?

I don't think it's that big of a deal either, since compiling these days is fast enough you can do it 3 times without it being a problem.

Don't get me wrong, it's very impressive, I just don't think it makes that big of a difference in practice, especially since environmental differences will still require you to have 2 codebases in many scenarios (like accessing the filesystem for example)

Every source-portable program has that anyway though, typically either with a bunch of ifdefs, or by linking to an abstraction like boost::filesystem.

The change here would basically be that all versions of it would have to be compiled into the same binary, with a runtime switch.