Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
No need to check if it is 0.
|
|
|
|
|
|
Use iterator or other help function instead of creating temporary array.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|