-
Notifications
You must be signed in to change notification settings - Fork 101
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
upstream: Re-implement rust-in-macro for performance #108
Conversation
thanks to phillord
Yep, will do. Probably this weekend. |
I merge this now, but it would be nice if you could post the differences with these changes. |
This works amazingly well! Including a screenshot of the profiler now, showing basically no resource usage by this code. Thank you SO much to both of you for troubleshooting/making this fix so quickly and helping out an ignorant emacs newb like myself :-). @brotzeit I'd be happy to make a PR to doom emacs (how I'm consuming it) bumping the version to current master if you think it's ready to go. |
@brownjohnf Nice! And yeah that would be great, I was planning to open a PR myself. |
The `rustic-syntax-propertize` function in rustic (set as `syntax-propertize-function` in emacs) had a performance regression (reported in brotzeit/rustic#107) that caused emacs to effectively lock up every time the viewport changed. This was fixed upstream in rust-mode by @phillord in rust-lang/rust-mode@bfe4056, and ported to rustic by @brotzeit in brotzeit/rustic#108. I've confirmed that this version of rustic seems to resolve the issue.
brotzeit/rustic@32a962a -> brotzeit/rustic@52b632d The `rustic-syntax-propertize` function in rustic (set as `syntax-propertize-function` in emacs) had a performance regression (reported in brotzeit/rustic#107) that caused emacs to effectively lock up every time the viewport changed. This was fixed upstream in rust-mode by @phillord in rust-lang/rust-mode@bfe4056, and ported to rustic by @brotzeit in brotzeit/rustic#108. Closes #3144 Co-authored-by: Jack Brown <[email protected]>
So after using this more, it definitely is better, but still not as snappy as I'd hope, or as fast as it seemed before the regression. I'm not sure what more to do about it though, and it'd be odd if these fixes make it fast enough in rust-mode but not rustic. Maybe I just have a slow machine. |
Hmmm, do you know that it's faster in rust-mode ? |
When I have the time, I will take a look at it, but I doubt I'm able to really improve it. I'm currently waiting for the native-comp branch in emacs to be more stable. I guess this will bring more performance improvements. |
Thanks @phillord
@brownjohnf can you test this please.
close #107