-
Notifications
You must be signed in to change notification settings - Fork 109
Collapse duplicated module requires #118
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
Part of issue #111. |
note, everything I've tried here is very slow (like >5m to compile angular2) It seems like even with hash-based map lookup, it is too expensive to check every import statement against the previously seen ones. If the imports were known to be ordered by clang-format, then we would be able to do this in O(1). Do you have any ideas? |
It can't be that expensive, are you sure it's your code? Perhaps your code is just enabling compilation to make more progress and something after it is making this slow? A given file has at most ~50 imports, and even using an array it's only 50^2 = 2500 steps which should be a fraction of a second. |
I'm pretty sure this change causes it. In a clean client I can build On Mon, Apr 4, 2016 at 3:15 PM Evan Martin [email protected] wrote:
|
becomes
We need to collapse those multiple requires into
(This is not just a thing that can be handled by the user by just avoiding double imports, because if you'll get the duplicate identifiers also if you import and export from the same module.)
The text was updated successfully, but these errors were encountered: