LearnNewsExamplesServices
Frontmatter
id8618
titleImplement insertNodeBatch support for StringBasedRenderer
stateClosed
labels
aiperformancecore
assigneestobiu
createdAtJan 13, 2026, 8:53 PM
updatedAtJan 14, 2026, 12:24 AM
githubUrlhttps://github.com/neomjs/neo/issues/8618
authortobiu
commentsCount1
parentIssue8601
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJan 14, 2026, 12:24 AM

Implement insertNodeBatch support for StringBasedRenderer

tobiu
tobiu commented on Jan 13, 2026, 8:53 PM

Currently, DeltaUpdates.update only enables insertNodeBatch optimization if NeoConfig.useDomApiRenderer is true. StringBasedRenderer users miss out on this performance gain (sequential inserts causing multiple reflows).

Goal: Update DeltaUpdates.update logic to allow batching for StringBasedRenderer. Implement insertNodeBatch logic for StringBasedRenderer (concatenating HTML strings or creating a DocumentFragment from multiple HTML strings) to perform a single DOM insertion.

tobiu
tobiu Jan 14, 2026, 12:23 AM

Input from Gemini 3 Pro:

✦ Enabled insertNodeBatch support for StringBasedRenderer in DeltaUpdates.

  • Removed NeoConfig.useDomApiRenderer restriction on batching.
  • Updated insertNodeBatch to handle StringBasedRenderer creation via createNode.
  • Verified with new test case in FragmentDeltaUpdates.spec.mjs.