Skip to content

perf: remove unused working storage in quilting node wrappers #937

Done

Description

@barrulus

Follow-up to #783.

Evidence level: source-only candidate. This was found during the bounded source audit of Hesiod 377f63701bd75e5ea40589b76604d44d214555f4 and HighMap d73e05adee1a04cc1e955d3f3162398a37f1c17d. The focused allocation captures measured ExportAsset and the texture-quilting nodes; they do not establish the allocation overlap or peak savings claimed by other code paths. Profile this specific path before promising a memory reduction.

Finding and proposed work

Scalar QuiltingExpand and QuiltingShuffle allocate a graph-sized output array before replacing it with the algorithm's returned array. Avoid allocating this unused working buffer.

The texture wrappers also create unused r/g/b/a VirtualArrays. RAM pixel storage is lazy, so those objects are metadata/storage-object cleanup, not four fully allocated image buffers. Keep that cleanup distinct from the scalar payload allocation. This is separate from the measured HighMap secondary-output copy overlap and does not promise an equal drop in process peak RSS.

Source locations

Acceptance

  • Verify deterministic unchanged scalar and texture results for fixed seeds and parameters.
  • Confirm the unused scalar output allocation is removed.
  • Test RAM/disk storage and distinguish metadata cleanup from measured pixel payload or peak savings.

Related broad memory tracker: #375. This issue addresses unused local working storage, not allocation of disconnected output ports.

Activity

  1. self-assigned this
    on Nov 27, 2026
  2. added
    theme: nodes-algorithms
    on Nov 27, 2026
  3. moved this from Backlog to Archived in Hesiod Dev Boardon Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

theme: nodes-algorithms

Type

No type

Fields

Priority

None yet

Effort

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions