Repository navigation
dmvs_html: bounded layout memory, data-dmod-width, more states - #5
Merged
Merged
Conversation
Every inline layout and every intrinsic size took a 196 kB buffer from the arena (MAX_ITEMS items), flex layout another; the arena frees nothing until the page is done, and flex layouts measure their items again and again - a car HMI page took 225 MB per layout, 8 GB for its 33 states, and a page with more states ran a build host out of memory. The buffers are taken from the heap and given back when the function returns: 2.3 MB per layout, the page converts in 0.7 s instead of 16 s, the view written is the same. States are cheap now: 96 of them (was 48). data-dmod-width="name" makes an element as wide as the integer property `name` says (its laid out width times the property over data-dmod-scale, 1000 by default; data-dmod-value its initial value) - the property one of dmod.prop(), or made here: a progress bar the application moves. Needs dmvsi 0.6 (properties and change handlers). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
data-dmod-width="name": binds an element's width to a property of the channel (data-dmod-scale, default 1000;data-dmod-valuefor the initial value) - progress bars driven by the application.MAX_STATES48 → 96.Order
Needs dmvsi 0.6 released.
Test plan
ctest: 11/11ulimit -v🤖 Generated with Claude Code