Query Deserialization Performance Fix

Nate Agrin · Friday Demos · August 21, 2026 · 1:40

A behind-the-scenes performance improvement discovered while exploring browser-worker query execution, cutting deserialization time by one to two orders of magnitude.

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. Um, and yes, it definitely helped me learn a bunch of different areas that I had barely encountered before. So, you know, feel free to try it out , see how it goes, uh, let me know what you think. Um, second: it was kind of like , uh, another story about how Fable accidentally discovers pretty useful things. But I was...um, Jonathan and I have been thinking for many years, maybe four or five, about how to separate different parts of the query pipeline and just make them faster overall.

  2. And one of the ideas was to run parts of the pipeline in the browser inside a worker, which is kind of like running it in a separate thread. And uh Fable did a bunch of interesting analysis, ultimately deciding that the complexity it would introduce wasn't worth the result, but in the process discovered a very subtle uh performance issue that cuts some of our deserialization steps by an order of magnitude or two.

  3. Um, in practice, you know, it's not like a 10- second step is reduced to 1 second. It's more like what you see here. Something like a reduction from 500 milliseconds to 2 milliseconds. So, you know, it's not going to be a huge improvement, but in the aggregate for a large panel with a lot of high-volume queries, it can have a significant effect, and it's just nice not to waste resources if we don't have to .