mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-12 11:08:34 -05:00
Optimized parsers for speed & memory usage
Switches to lazy parsing of diff chunks
This commit is contained in:
@@ -92,7 +92,7 @@ export namespace Iterables {
|
||||
return source.next().value;
|
||||
}
|
||||
|
||||
export function* skip<T>(source: Iterable<T> | IterableIterator<T>, count: number): Iterable<T> {
|
||||
export function* skip<T>(source: Iterable<T> | IterableIterator<T>, count: number): Iterable<T> | IterableIterator<T> {
|
||||
let i = 0;
|
||||
for (const item of source) {
|
||||
if (i >= count) yield item;
|
||||
|
||||
Reference in New Issue
Block a user