Hi! I've passed a rather long seq (>7k elements) to clerk/vl 's :encoding ... :sort and got the error on the picture. Is it more likely a Clerk's issue or one of Vega itself? 🙂
@mkvlr I tried to (time) it and I see that indeed caching is in effect, as it should be. but it looks like Vega still renders from scratch and this is what I perceived as lack of caching. I'm rendering some ~40,000 data points — that's probably the reason why I'm noticing it. Is this by design, or could be optimized?
can you also paste the bottom part of the error?
cannot reproduce it exactly at the moment (getting `Maximum call stack size exceeded` in JS instead). IIRC, it was going like that all the way up to 7,000-something branches
btw, is it expected that clerk/vl charts are rendered from scratch with every file save, even if nothing relevant changed?
@alex.shulgin not expected, would you mind filing an issue? 🙏
@mkvlr sure. how do I go about actually measuring the time it takes to render a form? For now I only have a feeling that it takes much longer than I expect to see the "Evaluating cell 20 of 20: (clerk/vl {:data {:values ..." badge in the top-left corner.