This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-16
Channels
- # aws (6)
- # beginners (129)
- # calva (9)
- # cider (4)
- # cljs-dev (2)
- # clojure (41)
- # clojure-beijing (2)
- # clojure-dev (3)
- # clojure-spec (23)
- # clojure-uk (46)
- # clojurescript (38)
- # community-development (20)
- # core-async (4)
- # cursive (12)
- # data-science (7)
- # datascript (13)
- # datomic (15)
- # duct (11)
- # emacs (18)
- # figwheel-main (5)
- # fulcro (26)
- # off-topic (4)
- # pathom (28)
- # pedestal (3)
- # reagent (8)
- # reitit (6)
- # shadow-cljs (32)
- # specter (3)
for anyone looking for details on the "slow to load code in user.clj" problem with latest jdks - see https://dev.clojure.org/jira/browse/CLJ-2484 and https://github.com/puredanger/slow-user-load. Probably best to take any serious discussion to the jira comments.
I guess map merge could be made faster by using transients here? https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/APersistentMap.java#L40
APersistentMap is an abstract class extended by many map implementations, and generically they can't all be made into transients, only those that are ITransientAssociative. If you are using a transient map already, then you should get that effect (via the impl in ATransientMap). The concrete collections (which know whether they are transient-able), like PersistentHashMap / PersistentArrayMap, could probably override that function and do that though.