threatgrid / asami

A graph store for Clojure and ClojureScript
Eclipse Public License 1.0
637 stars 29 forks source link

General optimizations #188

Open quoll opened 3 years ago

quoll commented 3 years ago

I've used a lot of partials when I ought to have used #(f arg %) syntax. These are slower, which will be an issue in tight loops.

Also, some areas, like entity processing, make heavy use of dynamic bindings over volatiles. These turn out to be very expensive. Passing volatiles down the stack is faster.