Use the :opt feature to determine optimization settings
The :opt feature is added to features by Bazel with the --compilation_mode=opt
flag, so we can use that to decide how to configure optimizations.
For now I've left all the individual (declare #.$optimize-serialization) forms
in the code in case we want to roll this back, but they do nothing without
--compilation_mode=opt. I plan to remove them later.
Use the :opt feature to determine optimization settings
The :opt feature is added to features by Bazel with the --compilation_mode=opt flag, so we can use that to decide how to configure optimizations.
For now I've left all the individual (declare #.$optimize-serialization) forms in the code in case we want to roll this back, but they do nothing without --compilation_mode=opt. I plan to remove them later.