specter

Latest version: 1.1.3
jsa-aerial 2018-07-06T15:24:48.000423Z

suppose you do not have a fixed (literal) path for things like setval, transform, etc. So, you have something like (transform [ATOM (apply keypath ks)] inc db). Does the 'This macro will do inline compilation and caching of the path.' still apply in this sort of situation? If not, is it still comparable in performance to update-in?

jsa-aerial 2018-07-06T15:25:11.000452Z

@nathanmarz ^^^

nathanmarz 2018-07-06T17:37:29.000012Z

@jsa-aerial since ks is not static, you pay the cost of the apply and the keypath expansion on every invocation

nathanmarz 2018-07-06T17:38:19.000105Z

not sure how it will compare to update-in but there will be a noticeable performance hit