mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-08 19:56:39 +00:00
Efficiency: avoid making and throwing away array
Since the array returned from a filter operator will just be copied and thrown away in the makeTiddlerIterator function in wiki.js, we can skip that step by using the linked list's makeTiddlerIterator method instead.
This commit is contained in:
parent
150a3b44d3
commit
0a3a7a901a
@ -69,7 +69,7 @@ Interleave two or more lists one item at a time
|
||||
current = (current+1) % listCount;
|
||||
}
|
||||
|
||||
return results.toArray();
|
||||
return results.makeTiddlerIterator(options.wiki);
|
||||
};
|
||||
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user