8000 batch invalidations by tombl · Pull Request #204 · tombl/dhtml · GitHub
[go: up one dir, main page]

Skip to content

batch invalidations - #204

Merged
tombl merged 10 commits into
mainfrom
push-wrnolppoputo
Mar 1, 2026
Merged

tombl merged 10 commits into
mainfrom
push-wrnolppoputo

Conversation

@tombl
@tombl tombl commented Oct 29, 2025 •
Copy link
Copy Markdown
Owner

...in a microtask.

makes invalidate async, so while it's less convenient, you can still await or .then for your post-update DOM handling needs.

good for perf but mainly because I've just discovered a pile of reentrancy issues and don't want to keep hunting for them individually.

note that most usages in the examples didn't even need updating because very few actually need this. this does probably break all the benchmarks though.

closes #200

@github-actions
github-actions Bot commented Oct 29, 2025 •
Copy link
Copy Markdown

Size Change: +40 B (+1.16%)

Total Size: 3.48 kB

Filename Size Change
./dist/client.min.js 2.09 kB +40 B (+1.96%)
ℹ️ View Unchanged
Filename Size
./dist/index.min.js 63 B
./dist/server.min.js 762 B
./dist/shared.min.js 565 B

compressed-size-action

@tombl
tombl force-pushed the push-wrnolppoputo branch 5 times, most recently from 1b25ee7 to cd2298a Compare October 29, 2025 14:22
@tombl
tombl force-pushed the push-wrnolppoputo branch from cd2298a to b621881 Compare February 1, 2026 07:45
tombl added 9 commits March 1, 2026 10:10
This reverts commit 1a90dc6.
This reverts commit bad5096.
batching makes things like 10x faster anyway.

at least returning a promise makes it easy to do
things after the update.
@tombl
tombl force-pushed the push-wrnolppoputo branch from b621881 to f98df7a Compare March 1, 2026 02:10
@tombl
tombl marked this pull request as ready for review March 1, 2026 07:26
@tombl
tombl merged commit a483e50 into main Mar 1, 2026
4 checks passed
@tombl
tombl deleted the push-wrnolppoputo branch March 1, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0