lukew3 / mathgenerator

A math problem generator, created for the purpose of giving self-studying students and teaching organizations the means to easily get access to high-quality, generated math problems to suit their needs.
https://lukew3.github.io/mathgenerator
MIT License
681 stars 176 forks source link

Fix long import times #397

Closed lukew3 closed 1 year ago

lukew3 commented 1 year ago

Bug Description

It takes about 0.5 seconds to import the library. I think that the main issue causing this is the fact that all generators need to be instantiated on load.

Why we are using a Generator class:

Possibilities for how to best restructure: