Skip to content
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

New-type return type of Parser::map #470

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DaniPopes
Copy link
Contributor

Fixes #468. I'm not sure why this works but it probably has something to do with return-position impl Trait in traits having some exponential behavior in rustc.

Compile times for cargo build --bin egglog went from 40s to 8s on my machine, with egglog (library) now taking about 3s.

@DaniPopes DaniPopes requested a review from a team as a code owner November 11, 2024 07:37
@DaniPopes DaniPopes requested review from mwillsey and removed request for a team November 11, 2024 07:37
Copy link

codspeed-hq bot commented Nov 11, 2024

CodSpeed Performance Report

Merging #470 will not alter performance

Comparing DaniPopes:parser-map (9c1663d) with main (2c8d947)

Summary

✅ 8 untouched benchmarks

@saulshanabrook saulshanabrook requested review from Alex-Fischman and removed request for mwillsey November 11, 2024 19:21
Copy link
Member

@saulshanabrook saulshanabrook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that's a huge improvement! Thanks for tracing this down.

Could you add a comment to the code maybe linking the issue and explaining the fix so that people who come across this code know why it exists?

Copy link
Contributor

@Alex-Fischman Alex-Fischman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My immediate thought is that I would rather simply revert this commit. It was only changed for ergonomics, and I don't think it's worth either the additional PhantomData complexity or the compile time hit.

@ezrosent Do you agree?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile time regression
3 participants