Implement internal cache on Cache class - resulted in a 5x speed increase (around 60s to 12s locally) with Style.getStyles() over 10000 iterations
See perf benchmark, I surprised by myself by learning the hashing was super fast but style output was much slower - there's likely more room for improvement waiting here
Coverage decreased (-0.4%) to 97.753% when pulling d52480b6914a7fa1eeb276f4510d319031158980 on random-improvements into 6129ddfe6c0916477a95572e8c9be3feb896625e on master.
Coverage decreased (-0.4%) to 97.753% when pulling d52480b6914a7fa1eeb276f4510d319031158980 on random-improvements into 6129ddfe6c0916477a95572e8c9be3feb896625e on master.
Cache
class - resulted in a 5x speed increase (around 60s to 12s locally) withStyle.getStyles()
over 10000 iterationsObject.create(null)
for cache objectspackage-lock.json
to repo