I experienced several approaches to make map updates as fast as possible:
tm
and the original map m
, the key being accessed from m
and the update being written to tm
(benchmarking having shown that access is much slower on transients)To my surprise, benchmarking showed that approach 3 was faster or no slower for various map sizes and key distributions.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |