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

Derive Ord instance for all core AST types #283

Merged
merged 29 commits into from
Sep 4, 2024
Merged

Conversation

raehik
Copy link
Collaborator

@raehik raehik commented Jun 15, 2024

Requested in #282 . Note that Eq was already derived.

Requested in #282 . Note that `Eq` was already derived.
@raehik raehik mentioned this pull request Jun 15, 2024
@raehik
Copy link
Collaborator Author

raehik commented Jun 15, 2024

The AST module is very large with lots of automatic deriving already taking place. Deriving Ord as well will increase compilation time. Should be kept in mind. (It'd be nice to record compilation time per module, wonder if there's a tool for that.)

@dorchard
Copy link
Member

dorchard commented Sep 4, 2024

I think this is a good idea and worth the extra time taken, which is not vast. I timed a difference of about 5s (97s vs 102s) on builds between master and this branch.

@dorchard
Copy link
Member

dorchard commented Sep 4, 2024

I have rebased off master

@dorchard dorchard merged commit a0c78d2 into master Sep 4, 2024
7 checks passed
@raehik raehik deleted the ast-ord-instance branch September 5, 2024 18:38
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.

2 participants