diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-09-23 11:49:51 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | 40cc08c41a5d583f880e582693f1749a95fca0be (patch) | |
tree | 015bc7f401d36eb15e1e1ea39794e78c9af3332c /tools | |
parent | a3bb2a2886cfa9da53fe1c90e4013875ee11febc (diff) | |
download | plantagenet-40cc08c41a5d583f880e582693f1749a95fca0be.tar.gz |
Rejig map_search a bit.
Use the "set" functions instead of array.push and array.includes.
Update "seen" when adding entries to search queue to avoid the extra
loop that scanned the queue for duplicates.
Don't create lots of temporary arrays that create needless work
for the garbage collector.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions