hashgraph / hashgraph/pbj

perf: Inline an addToList, and reserved space for the list

Open
#929 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
44
Forks
15
Avg merge
1d 15h
Merged PRs (30d)
12

Description

Replaces a generic `addToList` helper call per element with an inlined `list.add(...)`, and pre-sizes the list via `ensureCapacity`.

**Benefit:** avoids repeated list growth/copy for large packed lists.

PR: hashgraph/pbj#914

Contributor guide

Open the contributing guide

Research direction

Start by reviewing PR hashgraph/pbj#914, which contains the work described in this issue. Confirm the relevant generated-list paths and existing performance tests there, then verify that addToList calls are inlined and list capacity is reserved without changing behavior or breaking the test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
performance
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.