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
Replaces a generic
addToListhelper call per element with an inlinedlist.add(...), and pre-sizes the list viaensureCapacity.Benefit: avoids repeated list growth/copy for large packed lists.
PR: #914