2 ms·
That's pretty much what it's doing! It runs everything in a web worker at the moment, not sure if there are optimizations I could make by running more of them
by simonw 5y ago
That's pretty much what it's doing!
It runs everything in a web worker at the moment, not sure if there are optimizations I could make by running more of them in parallel?
It doesn't exactly run a localhost server. It uses a mechanism from Datasette's internals that lets you simulate an HTTP request through the Datasette application and get back the result. Then it sends that result back as a message from the worker to the parent page.
It's using this API here for that: https://docs.datasette.io/en/stable/internals.html#datasette-client https://docs.datasette.io/en/stable/internals.html#datasette...