Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Fix performance regression when there is no >#315

Merged
ungb merged 6 commits intomasterfrom
wl-fix-performance-regression
Sep 13, 2017
Merged

Fix performance regression when there is no >#315
ungb merged 6 commits intomasterfrom
wl-fix-performance-regression

Conversation

@winstliu
Copy link
Contributor

@winstliu winstliu commented Sep 6, 2017

WIP

This works, but I'm not sure if it introduces other regressions (unlikely, but I'm not the one to say 😊). It would also be nice to change this to use scopes instead of using word boundaries to find tag boundaries.

Fixes #314

@winstliu winstliu self-assigned this Sep 6, 2017
@winstliu
Copy link
Contributor Author

winstliu commented Sep 9, 2017

Darn. There's still some catastrophic backtracking, even with this new regex.

@winstliu winstliu changed the title [WIP] Fix performance regression when a < is located without a corresponding > [WIP] Fix performance regression when there is no > Sep 9, 2017
@winstliu
Copy link
Contributor Author

winstliu commented Sep 9, 2017

Ok, I believe this should fix things. One regression: multiline self-closing tags are not recognized as self-closing tags.

@Ben3eeE
Copy link
Contributor

Ben3eeE commented Sep 11, 2017

@50Wliu Do you think we can ship this even with the issue of multiline self-closing tags?

@winstliu
Copy link
Contributor Author

Since the self-closing tags highlighting isn't even on atom/atom master yet, I think it's safe to merge this and create another followup issue about multiline self-closing tags.

@Ben3eeE Ben3eeE changed the title [WIP] Fix performance regression when there is no > Fix performance regression when there is no > Sep 11, 2017
@Ben3eeE
Copy link
Contributor

Ben3eeE commented Sep 11, 2017

@ungb I have tested this for a while and it looks good to me. I added it to your TODO. Can you merge this after you have tested it?

@ungb
Copy link
Contributor

ungb commented Sep 13, 2017

I've tested this as well. Merging! thanks @50Wliu and @Ben3eeE for taking this on!

@ungb ungb merged commit 438bbb5 into master Sep 13, 2017
@ungb ungb deleted the wl-fix-performance-regression branch September 13, 2017 16:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants