okamsn / loopy

A better looping and iteration macro for Emacs.
GNU General Public License v3.0
23 stars 3 forks source link

`map`: Checking for duplicates as we go instead of all at once? #179

Closed okamsn closed 1 month ago

okamsn commented 1 year ago

The map command currently uses seq-uniq to remove all duplicate keys in one go from the result of map-pairs. Would it be faster to check each item as we iterate during the loop, instead of doing it all at once?

okamsn commented 1 month ago

Testing map of 10, 100, and 1000 entries showed that it was faster in all cases.