whitfin / siphash-elixir

An Elixir implementation of the SipHash cryptographic hash family
MIT License
19 stars 3 forks source link

Improve performance in the Elixir layer to remove NIFs #3

Closed whitfin closed 6 years ago

whitfin commented 6 years ago

The NIFs are a pain to support because I don't have a Windows machine, and they assume a lot about the compilation environment. It would be nice if we could improve the Elixir layer enough to get close enough to the NIFs that it's not an issue and we can just remove them.

Previously the issue was with masking numbers to 64 bits (which C did anyway), so we need to figure that out!

whitfin commented 6 years ago

Basically tapped out in latest master; got a few micros faster but we're capped in the Elixir layer.