KirkMcDonald / kirkmcdonald.github.io

Simple web-based calculator for the game Factorio.
Apache License 2.0
547 stars 146 forks source link

Improve speed of pivot #98

Closed terite closed 5 years ago

terite commented 6 years ago

Avoiding unnecessary math in pivot improves runtime dramatically for me, though this is an older change and I don't have any numbers to share.

Adding Rational#reciprocate doesn't help nearly as much, but pivot is very intensive and every little bit helps.

This should help with #35