We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The LookaheadText.testFromPosition depends on String.subSequence which actually copies the content over to a new array:
LookaheadText.testFromPosition
String.subSequence
As a result during 15s of indexing, even 1.7GB of data can be allocated. You can check it out by profiling indexing of https://github.com/JetBrains/ring-ui/tree/master in WebStorm.
It seems that it would be best to use something similar to com.intellij.util.text.CharSequenceSubSequence to save a lot on memory allocations.
com.intellij.util.text.CharSequenceSubSequence
The text was updated successfully, but these errors were encountered:
https://youtrack.jetbrains.com/issue/IDEA-320694
Sorry, something went wrong.
No branches or pull requests
The
LookaheadText.testFromPosition
depends onString.subSequence
which actually copies the content over to a new array:As a result during 15s of indexing, even 1.7GB of data can be allocated. You can check it out by profiling indexing of https://github.com/JetBrains/ring-ui/tree/master in WebStorm.
It seems that it would be best to use something similar to
com.intellij.util.text.CharSequenceSubSequence
to save a lot on memory allocations.The text was updated successfully, but these errors were encountered: