summaryrefslogtreecommitdiff
path: root/tools/gendata.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-23 11:49:51 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commit40cc08c41a5d583f880e582693f1749a95fca0be (patch)
tree015bc7f401d36eb15e1e1ea39794e78c9af3332c /tools/gendata.js
parenta3bb2a2886cfa9da53fe1c90e4013875ee11febc (diff)
downloadplantagenet-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/gendata.js')
0 files changed, 0 insertions, 0 deletions