Mutagen-Modding / Mutagen

A .NET library for analyzing, creating, and manipulating Bethesda mods
GNU General Public License v3.0
124 stars 32 forks source link

PERSItemsBinaryOverlay list optimization #539

Open Noggog opened 3 months ago

Noggog commented 3 months ago

It knows the subitem is length 12, but still does:

public IReadOnlyList<IPERSItemGetter> Items => BinaryOverlayList.FactoryByLazyParse<IPERSItemGetter>(_structData, _package, (s, p) => PERSItemBinaryOverlay.PERSItemFactory(s, p));

It should be able to optimize and use the lengthed alternative