Skip to content

Conversation

ishitatsuyuki
Copy link
Contributor

Description

The duplication detection is now amortized O(n) instead of O(n^2).

Does your commit message include the wording below to reference a specific issue in this repo?

No issue opened for this trivial change.

Related Pull Requests

Blame #693 for the crap implementation.

Does your pull request have unit tests?

This is a performance fix and thus cannot be unit tested.

@ns-bot
Copy link

ns-bot commented May 27, 2017

Can one of the admins verify this patch?

@petekanev
Copy link
Contributor

I'll agree that using a HashSet is better since we do not need the random index access of the List, so element lookup would be faster, though I do not expect any noticeable speed up in class generation.

Copy link
Contributor

@petekanev petekanev left a comment

Choose a reason for hiding this comment

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

There have been changes in Generator.java, please rebase to latest master, and you are good to go.

@petekanev
Copy link
Contributor

run ci

@ns-bot
Copy link

ns-bot commented May 31, 2017

💚

@petekanev petekanev merged commit 1a02d15 into NativeScript:master May 31, 2017
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.

3 participants