hyperstack-org / hyperstack-org/hyperstack

Hyperstack hotloader is too slow

Aperta
#414 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
538
Fork
41
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The hotloader client is very slow when large js files are generated (hyperstack 1.0.0alpha1.8).
Chrome freezes just after page loading.

With chrome profiler, I can see it stays several seconds in ruby/hyperstack-config/lib/hyperstack/hotloader/stack-trace.js in _findFunctionName and _findSourceMappingURL

![hotloader profiling](https://user-images.githubusercontent.com/3176049/120318906-b29c9080-c2e0-11eb-8de1-d1fe6a88c055.png)

These methods create Regexps each time they are called.
If you keep these regexps in a cache the hotloader should be faster.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.