diff options
author | 2024-03-18 17:06:30 +0100 | |
---|---|---|
committer | 2024-03-18 16:13:32 -0700 | |
commit | 863a5b36482b5f2749fcd8d7f6084af640f2090a (patch) | |
tree | bf5ce05ddf2db47b09f9c0ae9b660c737ce71751 /internal/ui/static/js/request_builder.js | |
parent | 91f5522ce01518ddb0e1df2cda8a54099959faab (diff) | |
download | v2-863a5b36482b5f2749fcd8d7f6084af640f2090a.tar.gz v2-863a5b36482b5f2749fcd8d7f6084af640f2090a.tar.zst v2-863a5b36482b5f2749fcd8d7f6084af640f2090a.zip |
Simplify removeDuplicates
Use a sort+compact construct instead of doing it by hand with a hashmap. The
time complexity is now O(nlogn+n) instead of O(n), and space complexity around
O(logn) instead of O(n+uniq(n)), but it shouldn't matter anyway, since
removeDuplicates is only called to deduplicate tags.
Diffstat (limited to 'internal/ui/static/js/request_builder.js')
0 files changed, 0 insertions, 0 deletions