-
Notifications
You must be signed in to change notification settings - Fork 13.3k
lemmy_db_views_modlog_combined
has a weird performance regression
#141006
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
Comments
Adding the content from #132064 (comment) Steps to get these results:
Original comment: These results are surprising for me as neither Given these suprising results I checked out the code locally and used
It seems like Overall the main issues from my point of view are the I attach both the recorded For me that all indicates:
EDIT: I've uploaded a samply profile here: https://share.firefox.dev/4kefIUS. This reports that 87% of the time is spend in this function:
EDIT 2: I dug a bit further and it seems like most of the time is spend here on normalizing that generic query type again and again and again. https://github.com/rust-lang/rust/blob/master/compiler/rustc_middle/src/ty/inhabitedness/inhabited_predicate.rs#L102 I'm not sure if it would be possible to cache that so the compiler only needs to do that once and not repeat it thousand times? As I don't know anything about that part of the compiler nor do I have the capacity to fix that on my own there is not much more I can do here. From my perspective that still looks like a rather critical regression that was possibly introduced while the fix for the other issue was done and therefore went unnoticed for quite some time. (Or better the fallout was attribute to the other issue) |
@lcnr To me this looks like #132064, which I've bisected to #126024, and was improved by #132625 as an alternative to the possible revert in #132075. Only I guess that this looks worse with the new For this updated example,
Do you think we need a new issue to track this? (#140944 likely is another duplicate in practice, however that one can be worked around differently.) |
Originally posted by @Nutomic in #132064
The text was updated successfully, but these errors were encountered: