Liking cljdoc? Tell your friends :D

dissoc* performance

Compared to version 4, dissoc* version 5 notably improved performance handling hashmaps. Handling other collection types remained constant.

See the overall summary for benchmarking details. The benchmarks displayed in this document are defined here.

Hashmaps

Version 5 improves performance on hashmaps by 40 to 60% compared to version 4.

(fn [n] (dissoc (map-of-n-key-vals n) (dec n)))

Benchmark measurements for expression `(fn [n] (dissoc (map-of-n-key-vals n) (dec n)))`, time versus 'n' arguments, comparing different versions. Show details

(fn [n] (dissoc* (map-of-n-key-vals n) (dec n)))

Benchmark measurements for expression `(fn [n] (dissoc* (map-of-n-key-vals n) (dec n)))`, time versus 'n' arguments, comparing different versions. Show details

Lists

Performance did not notably change from version 4 to version 5.

(fn [n] (dissoc* (list-of-n-rand-ints n) (dec n)))

Benchmark measurements for expression `(fn [n] (dissoc* (list-of-n-rand-ints n) (dec n)))`, time versus 'n' arguments, comparing different versions. Show details

Sequences

Performance did not notably change from version 4 to version 5.

(fn [n] (dissoc* (seq-of-n-rand-ints n) (dec n)))

Benchmark measurements for expression `(fn [n] (dissoc* (seq-of-n-rand-ints n) (dec n)))`, time versus 'n' arguments, comparing different versions. Show details

Vectors

Performance did not notably change from version 4 to version 5.

(fn [n] (dissoc* (vec-of-n-rand-ints n) (dec n)))

Benchmark measurements for expression `(fn [n] (dissoc* (vec-of-n-rand-ints n) (dec n)))`, time versus 'n' arguments, comparing different versions. Show details

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close