-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimise some of the bounds checks (#34)
* optimise bounds checks This brings a performance improvement of 40-100%, making this implementation as fast as the C++ alternative in kagome. Where possible, compiler is aided to optimise away the bounds checks without any unsafe code. However, a fair amount of unsafe code was needed, but it doesn't lower the security posture as the needed assertions were already being made. Signed-off-by: alindima <alin@parity.io> * fix clippy * switch to using safe optimisations * revert some changes --------- Signed-off-by: alindima <alin@parity.io>
- Loading branch information
Showing
5 changed files
with
53 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters