Fork me on GitHub
#rewrite-clj
<
2022-01-07
>
ericdallo04:01:49

does adding {:track-position? true} to z/of-string affects node navigation performance or something else? there is a new clojure-lsp feature that we'd like to use z/position but it needs this track-position to be passed

lread17:01:31

@ericdallo I’ve not done any measurements but I fully expect that enabling position tracking will slow down updates. If you don’t care about keeping the position up to date after updates to the zipper, you can https://cljdoc.org/d/rewrite-clj/rewrite-clj/1.0.699-alpha/doc/user-guide#nodes without position tracking enabled.

ericdallo21:01:39

thanks, makes sense @lee I'll try avoid it for now c/c @jacob.maine