Optimized parsers for speed & memory usage

Switches to lazy parsing of diff chunks
This commit is contained in:
Eric Amodio
2017-06-10 00:16:46 -04:00
parent eeff31cf27
commit e6316400f0
16 changed files with 343 additions and 340 deletions

View File

@@ -41,7 +41,7 @@ export class DiffAnnotationProvider extends AnnotationProviderBase {
const decorators: DecorationOptions[] = [];
for (const chunk of diff.chunks) {
let count = chunk.currentStart - 2;
let count = chunk.currentPosition.start - 2;
for (const change of chunk.current) {
if (change === undefined) continue;