Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
zeroex: Cache order hash calculations #365
Copied over from #167, this PR introduces a performance optimization by caching order hashes instead of computing them multiple times for the same order.
This optimization has become increasingly relevant as we're testing Mesh in the browser. Performance profiling in Firefox and Chrome revealed that computing order hashes was taking a significant amount of CPU time. This PR reduces it from 2.5% total CPU time to 0.6%.