-
Notifications
You must be signed in to change notification settings - Fork 697
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
Delete second checkPackageDescription
call
#10516
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference, the other call is on line 238: https://github.com/parsonsmatt/cabal/blob/7c9e0de9a1200f8663bd1ea87d5d82a770b4eee7/Cabal/src/Distribution/PackageDescription/Check.hs?plain=1#L238
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good find.
I don't think this requires a Template A, as it fixes a bug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Excuse us if we're slow in other PRs of yours: it's a release time for us. But we'll get there.
Y'all are reviewing these quickly, no worries at all! 😄 We will most likely be using a patched version while we wait for relesae, so there's no rush on our end. |
While diagnosing slow
check
times, I identified that file glob expansion was very slow, even on literal paths (#10495). This was made worse because Cabal would expand a glob four times for eachextra-source-files
line.Fortunately, we can halve this easily: we call
checkPackageDescription
twice incheckGenericPackageDescription
. This PR simply removes one of the calls in the function.On our codebase, this patch has the effect of reducing the time spent expanding globs from 34s to 17s, bringing the time to do
cabal repl --repl-options "-e ()"
from 50s to 33s.Template Α: This PR modifies behaviour or interface
Include the following checklist in your PR: