This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-10
Channels
- # 100-days-of-code (2)
- # announcements (2)
- # aws (11)
- # beginners (114)
- # boot (6)
- # calva (11)
- # cider (11)
- # cljdoc (2)
- # cljs-dev (7)
- # clojure (126)
- # clojure-berlin (1)
- # clojure-conj (4)
- # clojure-dev (1)
- # clojure-germany (12)
- # clojure-italy (22)
- # clojure-spec (96)
- # clojure-uk (111)
- # clojurescript (27)
- # core-async (8)
- # cursive (17)
- # datomic (26)
- # devops (5)
- # editors (15)
- # emacs (13)
- # events (1)
- # figwheel-main (27)
- # fulcro (64)
- # hyperfiddle (29)
- # jobs (8)
- # jobs-discuss (7)
- # liberator (4)
- # off-topic (46)
- # om (9)
- # onyx (1)
- # overtone (1)
- # perun (8)
- # re-frame (28)
- # reagent (35)
- # reitit (5)
- # shadow-cljs (96)
- # spacemacs (1)
- # testing (10)
- # timbre (8)
- # tools-deps (63)
- # unrepl (1)
- # yada (10)
I noticed that hash-ordered-coll
and hash-unordered-coll
docstrings talk about hashing any iterable (copied from CLJ I think) but the CLJS implementation actually uses seq
is there any interest in making cljs actualy use -iterator
? Seems like it would be much more efficient
BEFORE (seqs)
[coll hash-coll-test], (or (== (hash-ordered-coll coll) -1266761014) (throw (js/Error. "bad"))), 1000 runs, 2385 msecs
[coll hash-imap-test], (or (== (hash-unordered-coll coll) -897742717) (throw (js/Error. "bad"))), 1000 runs, 7538 msecs
[coll hash-imap-int-test], (or (== (hash-unordered-coll coll) 1787591846) (throw (js/Error. "bad"))), 1000 runs, 8392 msecs
AFTER (iterators)
[coll hash-coll-test], (or (== (hash-ordered-coll coll) -1266761014) (throw (js/Error. "bad"))), 1000 runs, 1877 msecs
[coll hash-imap-test], (or (== (hash-unordered-coll coll) -897742717) (throw (js/Error. "bad"))), 1000 runs, 5829 msecs
[coll hash-imap-int-test], (or (== (hash-unordered-coll coll) 1787591846) (throw (js/Error. "bad"))), 1000 runs, 6828 msecs