Performance tweaks

This includes a number of performance tweaks that constitute a roughly
33% bump that's more impactful in larger pages because it also keeps
sparkline from reflowing the page

* Removes .bind() usage in hot functions
* Fast-rounds numbers used in canvas operations
* Computes minimum and min index in one move