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

Compile docstring converter regexes #707

Merged
merged 2 commits into from
Mar 6, 2019

Conversation

jakebailey
Copy link
Member

Fixes #705.

This isn't the end of the completion speedups, see #704. The regexes should be removed in favor of a real parser, eventually.

Also, I preallocate the builder based on the size of the input, rather than letting it resize needlessly.

I put the regexes as close to their uses as possible, rather than shoving them all at the top or bottom.

@jakebailey jakebailey merged commit f9c6938 into microsoft:master Mar 6, 2019
@jakebailey jakebailey added this to the Feb 2019.2 milestone Mar 6, 2019
@jakebailey jakebailey deleted the compile-regexes branch March 6, 2019 18:47
jakebailey added a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
* compile docstring converter regexes

* don't bother changing the comments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile regex instances in DocstringConverter
2 participants