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

Refactoring toward cabal #6614

Merged
merged 8 commits into from
Jun 22, 2024

Conversation

theobat
Copy link
Contributor

@theobat theobat commented Jun 21, 2024

This is a first step for #6593, the changes in DumpPackage are not done here, because a first move was to bring some types closer to cabal, step by step.
This includes 2 major changes :

  • GhcPkgId is now a wrapper over UnitId
  • StackUnqualCompName is now a nextype over its cabal counterpart, and generalized wherever we can (instead of Text)

The second change is also a refactoring towards better type safety and documentation. It should also increase overall stack's speed by two aspects : better memory layout with ShortText, and less translation work from cabal.

Indicative integration tests speed:
1185 ubuntu
951 macos
1491 windows
So this corroborates a small speedup (compared to baseline #6615)

@theobat theobat force-pushed the refactoring-toward-cabal branch 2 times, most recently from fe84c66 to 528881b Compare June 22, 2024 18:27
package.yaml Show resolved Hide resolved
@mpilgrem
Copy link
Member

mpilgrem commented Jun 22, 2024

#6615 is now merged, so this could be re-based on master. EDIT: I've done that.

@mpilgrem mpilgrem merged commit fa9c76c into commercialhaskell:master Jun 22, 2024
13 checks passed
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