hyperstack-org / hyperstack-org/hyperstack

Hyperstack hotloader is too slow

オープン
#414 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
538
フォーク
41
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。