-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add "dir=auto" for input/textarea elements by default #26735
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
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Should we filter to exclude type |
Will this work on both static and js-injected content? |
Yes, just like the |
Can keep without the filter as well I guess, it will be slightly faster without. |
Didn't see any noticeable difference ..... I guess keeping the |
Imho the perf impact of this is too much. I can easily see this observer taking 1-2 seconds of time on a large diff page for example which would certainly freeze the browser. The info mentioned here is very much relevant, but none of those tricks really help. One should just not run I think #26715 is the better solution that can not possibly have such a potentially huge perf impact like this has. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perf impact too big
There are still some key points, eg: And another point is: it doesn't need to be executed in the |
Fully rewritten, now it takes around 1.5ms on a PR page with |
Switched to Set, it is faster at least with 5 elements. |
Another small gain made with length caching. |
Let's roll 🚀 |
At least Chrome and Safari show a significant improvement for Set. In Firefox it is closer for me too, but still 5-10% faster. |
How do your browser think about "#26735 (comment)" ? On my side, Set is significantly slower. The "perf.link" is just a blackbox, I don't fully trust it for some critical tasks. (I just would like to clarify the problem, again: While such minor performance doesn't bother me, either is fine.) |
Firefox
Chrome
|
That's a huge different result from perf.link. I think our manually written test code is more like the real case we are facing. |
Switched it back |
* giteaofficial/main: Add `yamllint` (go-gitea#26965) Fix yaml quoting (go-gitea#26964) [skip ci] Updated translations via Crowdin Add `actions/labeler` (go-gitea#26962) Team invite url fix when registration disabled (go-gitea#26950) Refactor dashboard/feed.tmpl (go-gitea#26956) Improve hint when uploading a too large avatar (go-gitea#26935) Replace `util.SliceXxx` with `slices.Xxx` (go-gitea#26958) Add reverseproxy auth for API back with default disabled (go-gitea#26703) Add "dir=auto" for input/textarea elements by default (go-gitea#26735)
No description provided.