-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
pasting is very unperformant in CIDER #10687
Comments
https://matrix.org/_matrix/media/r0/download/matrix.org/dfSBwcLpjwfNqwzbsGHTutzr (FF68 on macOS 10.14, the emoji appear very gradually, one by one, with about 300ms gap between). This is when leaning on cmd-V to paste. It happens with emoji & non-emoji ftr. |
btw, i don't think this is a very big deal - it's just that i was trying to benchmark it relative to Slate by pasting a lot of stuff, and got confused when it was ~20x slower to paste. |
Ok, the provided recording doesn't clear up much :( I only see one input event being processed by CIDER, at the 7.288s mark, taking just around ~3ms to complete. Lots of react stack traces and worker messages in there as well, but hard to tell if related to the slowness. Maybe something else causing GCs is preventing the paste events from being dispatched? Firefox profiler sparseness also doesn't help here. If you can repro in Chrome, a recording from that browser could help. |
(The default Firefox profiler is near-useless, but a better one exists as an option in Firefox Nightly... The new profiling UI is a complete rewrite and loads the profile in a browser tab among many other features. I recommend it where possible as the profile viewer is much fancier, but it does involve using Nightly and checking "Enable new performance recorder" in DevTools settings. Unfortunately, I believe it uses a separate profile format, so we'd need a fresh profile to be recorded in the new tool to analyse it there.) |
Indeed, must be a different format. Tried loading the file in nightly and gave me an identical result. Edit: the new profile wasn't enabled in nightly actually, but the new one doesn't seem to have an option to load JSON files... |
Actually an even easier way to access the new Firefox profiler is via about:config setting "devtools.performance.new-panel-enabled" to true, as this will work in any release channel. Then go to DevTools and record in the performance panel. |
Closing this as presumed fixed in the many years due to lack of further reported cases |
i just tried to see how fast i could paste 🎉 with slate, and it was pretty stable other than occasional GCs. On CIDER i can only manage a few per second, and it constantly GCs
The text was updated successfully, but these errors were encountered: