This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-21
Channels
- # announcements (3)
- # babashka (98)
- # beginners (69)
- # chlorine-clover (6)
- # cider (24)
- # cljsrn (2)
- # clojure (97)
- # clojure-australia (2)
- # clojure-berlin (6)
- # clojure-dev (57)
- # clojure-dusseldorf (4)
- # clojure-europe (19)
- # clojure-italy (5)
- # clojure-nl (10)
- # clojure-seattle (1)
- # clojure-uk (44)
- # clojuredesign-podcast (13)
- # clojurescript (45)
- # cursive (4)
- # data-science (1)
- # datomic (32)
- # emacs (7)
- # events (5)
- # fulcro (17)
- # java (12)
- # jobs (1)
- # lumo (2)
- # malli (5)
- # observability (16)
- # off-topic (1)
- # pathom (3)
- # pedestal (4)
- # rdf (14)
- # re-frame (54)
- # reagent (4)
- # releases (3)
- # remote-jobs (1)
- # reveal (55)
- # shadow-cljs (34)
- # spacemacs (14)
- # specter (9)
- # tools-deps (16)
- # xtdb (7)
Do any of you guys know if there’s a great article about novice java interop mistakes Clojure devs do (or general things to look for)? Migrated some code from java to java interop but my performance went down by like 10%
Add (set! *warn-on-reflection* true)
to each Clojure file just after the ns
form. Reflection is the most likely cause of your performance issues.
If you get reflection warnings, you should be able to add type hints to the code at those points to get rid of the warning and speed your code up @davidginzbourg
Unfortunately that’s not that @seancorfield
Also, if you're doing some number crunching make sure to turn on boxed math warnings, the difference in performance can be two orders of magnitude
Mostly copied from https://github.com/metosin/jsonista/blob/master/src/java/jsonista/jackson/PersistentHashMapDeserializer.java