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

Rewrite diff check algorithm + improve performance + fix linter fixes #1706

Merged
merged 19 commits into from
Sep 26, 2020

Conversation

aminya
Copy link
Collaborator

@aminya aminya commented Aug 1, 2020

Description of the change

This updates the way messages are filtered. The previous code was not flagging messages as added, removed, or kept correctly. A highly optimized algorithm is written to do the diff checking.

It greatly improves the performance of linter by not sending messages that are already rendered to linter-ui.

Fixes steelbrain/linter-ui-default#580
Fixes #1709

should be merged with steelbrain/linter-ui-default#581

@aminya aminya force-pushed the fix-updateMessages branch from ffe3966 to 00b2ebd Compare August 2, 2020 02:22
@aminya aminya marked this pull request as ready for review September 25, 2020 09:11
update function requires the input messages to be normalized. It does not update the keys itself anymore (relies on LinterRegistry.lint to do it)
@aminya aminya changed the title Fix update messages + greatly improve performance Rewrite diff check algorithm + improve performance + fix linter fixes Sep 26, 2020
Changes the old test which was: checks if an old message has updated, if
so invalidates it properly
Set cannot compare complex objects
@aminya aminya merged commit 20f2aa2 into steelbrain:master Sep 26, 2020
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.

Linter fixes are not applied correctly if code changes Slows down the editor if too many errors
1 participant