gbeaty/scunits

Improve compilation performance

Opened this issue · 0 comments

I explored a number of different implementations for scunits, and the current one is the fastest. However it seems like it could still get faster. In the ~40s it takes to compile the benchmark code, time is spend in the following tasks:

  1. EList multiplication: 13s
  2. Integer addition: 4s (included in the above)
  3. Figuring out if the right-hand side of a Scalar operation has Dims which are <: DimsOf[quants]: 15s

3 seems like the lowest hanging fruit.