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

Calculation for the longest line in NoWrapMode can be optimized. #14

Open
alpyre opened this issue Oct 30, 2016 · 0 comments
Open

Calculation for the longest line in NoWrapMode can be optimized. #14

alpyre opened this issue Oct 30, 2016 · 0 comments

Comments

@alpyre
Copy link
Contributor

alpyre commented Oct 30, 2016

In the current implementation the longest line is found out by traversing through all the lines.

It would be more optimized to calculate the longestline by traversing through all the lines ONLY in the case of an import. In the cases of other changes, calculate ONLY for the edited section, and compare it with previous longestline value.

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

No branches or pull requests

1 participant