Improve startup performance: drop lilv + requests, defer pedalboard hydration#207
Open
sastraxi wants to merge 7 commits into
Open
Improve startup performance: drop lilv + requests, defer pedalboard hydration#207sastraxi wants to merge 7 commits into
sastraxi wants to merge 7 commits into
Conversation
rreichenbach
approved these changes
Jul 17, 2026
rreichenbach
left a comment
Collaborator
There was a problem hiding this comment.
Pretty cool that we can leave all the lilv to MOD.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The pistomp core (v2; rpi 3a+) was taking almost 7 seconds to load.
Pedalboard parsed every board's .ttl through lilv at construction — a World per Pedalboard, bundle load, plugin scan — to fill in plugins and connections we only read once a board is actually selected. Boards now construct bare and carry a
hydratedflag; the plugin/connection data is pulled from mod-ui's HTTP API on demand.This is actually kind of big: we don't actually need lilv, because we can get everything we need from data we're already loading from MOD-UI.
We also move away from
requeststo save 1.3s of startup time(!) on this device.pistomp/httpclient.pyimplements the minimum viable amount of the requests API via urllib instead.Some smaller ones: the NAM panel scanned the model wav to derive gain; hardcode it instead. And the tuner imports at first use rather than at handler construction.
At the end of this it's down to around ~3.5-4s.