1
0
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:
Robin Munn 2022-08-11 15:08:57 +07:00
parent 150a3b44d3
commit 0a3a7a901a

View File

@ -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);
};
})();