Skip to content
STIMSMITH

Shallow Copy Optimization

Technique

Shallow Copy Optimization is a performance technique in which an object is cloned by allocating a new instance and copying the object's underlying memory slice in one bulk operation. In the cited eUVM implementation, object introspection determines the memory footprint to copy, and the D language slice copy lowers to a single memcopy call, avoiding slower per-field copying associated with UVM utility copy constructs.

First seen 5/25/2026
Last seen 5/25/2026
Evidence 1 chunks
Wiki v1

WIKI

Overview

Shallow Copy Optimization is a technique for improving copy performance when a shallow copy is sufficient. In the RISCV-DV context described by the evidence, the generator uses a native shallow-copy construct rather than copying individual elements of a class object through a UVM utilities copy construct.

Implementation pattern

READ FULL ARTICLE →

NEIGHBORHOOD

No graph connections found for this entity yet. It may appear in future ingestion runs.

explore full graph →

RELATIONSHIPS

1 connections
riscv-dv ← uses 100% 1e
RISCV-DV uses native shallow copy construction for performance.

CITATIONS

5 sources
5 citations — click to expand
[1] RISCV-DV uses a native shallow copy construct when a shallow copy is sufficient. [PDF] Crafting a Million Instructions/Sec RISCV-DV - DVCon Proceedings
[2] The eUVM shallow-copy implementation uses object introspection to determine the memory footprint of the object to be copied. [PDF] Crafting a Million Instructions/Sec RISCV-DV - DVCon Proceedings
[3] The eUVM implementation copies the underlying memory slice from the source object to the destination object. [PDF] Crafting a Million Instructions/Sec RISCV-DV - DVCon Proceedings
[4] In D, the slice-copy operation used for this shallow copy results in a single memcopy call. [PDF] Crafting a Million Instructions/Sec RISCV-DV - DVCon Proceedings
[5] A single memcopy-based slice copy is described as more efficient than copying individual class-object elements through the UVM utils copy construct. [PDF] Crafting a Million Instructions/Sec RISCV-DV - DVCon Proceedings