This PR optimizes Poseidon mainly by removing all the allocations that were happening before due to the use of the fields module functions (which made every arithmetic operation require one or two allocations).
Tested on an Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
This PR optimizes Poseidon mainly by removing all the allocations that were happening before due to the use of the fields module functions (which made every arithmetic operation require one or two allocations).
Tested on an Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Before:
After: