ludic.ui, compiler: a component's model is filled in place into an object its instance keeps (value_set_*); colours, border-images and a class screen's stub made once; object-fit into a kept list - benchmark 20 -> 10 KB a frame

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 00:17:47 +03:00
parent 08ac2f1125
commit 429eeb7754
15 changed files with 44939 additions and 44681 deletions

View file

@ -14,7 +14,8 @@ function bd_class(ui_st: mut UiState, k: UiTpl, e: UiEnv, key: string, out: []Ui
}
cls.props(it.ptr, props)
let ce = env_new(ui_st, null)
ce.model = cls.model(it.ptr)
if it.model == null { it.model = Value.object() }
ce.model = cls.model(it.ptr, it.model)
ce.inst = it
ce.ctx = e.ctx
ce.slot = k