Skip to content

Commit

Permalink
A gentler meta GC invoke pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jul 20, 2024
1 parent 6e6e115 commit e2d5823
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cambiare/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ HTMLElement.prototype.setTextRaw = function (text) {
};

let Cambiare = class extends RootDisplay {
#metaGcLine = 16;
#metaGcLine = 32;
#metaGcStart = 64;
#metaMaxLine = 128;
#metaAmend = false;
#metaType = "";
Expand Down Expand Up @@ -1136,7 +1137,7 @@ let Cambiare = class extends RootDisplay {
metaLineType,
upThis.#metaLastLine
]);
if (upThis.#sectMeta.view.children.length > upThis.#metaGcLine) {
if (upThis.#sectMeta.view.children.length > upThis.#metaGcStart) {
upThis.#metaGcAt = Date.now() + 1000;
upThis.#metaGcScheduled = 1;
};
Expand Down

0 comments on commit e2d5823

Please sign in to comment.