SourceFile.getText is doing too many allocations #37
Labels
contributions-welcome
Contributions welcome to help resolve this (the resolution is expected to be clear from the issue)
type-enhancement
A request for a change that isn't a bug
I am stress-testing my parser and
SourceFile.getText
seems to be making unnecessary allocations.Isn't
String.fromCharCodes(_decodedChars, start, end);
a valid substitute? It appears to cause much less allocations this way.source_span/lib/src/file.dart
Lines 216 to 217 in f934308
The text was updated successfully, but these errors were encountered: