-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[機能][改善]初期化処理の軽量化 #12
Comments
spanをbodyにinsertしてそれに対してfont-sizeを変更し、getBoundingClientRectを実行すれば横幅はmeasureTextと同等のものが得られるかも? |
f8543a4 再帰呼び出しを軽減し、getCommentSizeを高速化 |
Repository owner
moved this from In Progress
to Done
in niconicomments
Sep 7, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
現状すべてのコメントをmeasureTextしているが、
中を流れるコメントは当たり判定的に消費する範囲は必ず一定で、
高さもDRなどが存在しないためある程度絞れる
そこで、nakaのmeasureTextはgetImage時に行い、初期化時はコマンドを処理して高さ計算をするだけに変更する
※ueやshitaのコメントは今まで通りmeasureTextを行う必要がある
The text was updated successfully, but these errors were encountered: