incremental-batches
Rich Harris 1 month ago
parent f86bf0d191
commit 144611a18c

@ -266,6 +266,8 @@ export class Batch {
}
#process() {
// console.group('process', this.id);
current_batch = this;
if (flush_count++ > 1000) {
@ -382,6 +384,8 @@ export class Batch {
if (!batches.has(this)) {
this.#commit();
}
// console.groupEnd();
}
/**

@ -158,6 +158,10 @@ export function increment_write_version() {
export function is_dirty(reaction) {
var flags = reaction.f;
if ((flags & REACTION_IS_UPDATING) !== 0) {
return false;
}
if ((flags & REACTION_RAN) === 0) {
return true;
}

Loading…
Cancel
Save