-
-
Notifications
You must be signed in to change notification settings - Fork 461
Suggestion: 'force_le' feature flag? #1179
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
What's the motivation for this? Better performance on big-endian platforms? |
I don't think it's a good idea. If |
Motivation? I'm looking at #1170, specifically |
Ok, so the goal is to offer big-endian platforms better performance at the cost of losing reproducibility with respect to little-endian platforms. I think this is fair, but I would be hesitant to add this without knowing whether anyone will use it, because it increases complexity by adding another feature, and it's a potential footgun for people upgrading |
It's also less of a performance boost now (see #1180). Agreed, we don't appear to need this. |
For the sake of portable results, we force the use of LE on byte-int and int-byte conversions. This isn't always desired, but to avoid multiple code-paths we do it anyway.
However, by using a feature flag, we don't need multiple compiled code paths (and the multiple code versions exist anyway, where this is a significant optimisation on LE). We could add a
force_le
feature flag to cause current behaviour on BE platforms, using NE by default.This would be a breaking change (target 0.9; #1165).
The text was updated successfully, but these errors were encountered: