threatgrid / asami

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

Pool IDs are not cached #231

Open quoll opened 2 years ago

quoll commented 2 years ago

find-id in the pool should be heavily cached. It's not, and that's a mistake.

Note that the pool only grows, so there is no need to cache by the pool root. However, if it ever returns nil then don't cache it, since the pool may have expanded. (or remember that the nil came from a pool root id)

The same should happen for find-object