-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Optimizing uint operations (architecture independent) #629
Conversation
@@ -167,3 +167,59 @@ pub use io::*; | |||
pub use log::*; | |||
pub use kvdb::*; | |||
|
|||
#[cfg(test)] | |||
mod tests { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why move here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those tests were not compiling in bigint
crate - they are for H256
which is implemented in util/src/hash.rs
why so much difference? |
Maybe benchmark code was incorrectly inlined? |
Yeah, it must have been some heavy optimization by compiler (the subtraction was done only for most significant u64). I've modified the bench and updated results. |
looks good to me, though with next pr we should move fixed hash integers to bigint crate and return tests back there as well |
will hold off until after 1.0. |
conflicts need sorting. |
Conflicts: test.sh util/bigint/src/uint.rs
Optimizing uint operations (architecture independent)
I've updated my benchmark results in https://github.com/ethcore/parity/issues/596#issuecomment-192630065, well done! |
Related to #490
Starting from:
Current:
vs ASM