ForeverZer0 / SharpNBT

A pure CLS-compliant C# implementation of the Named Binary Tag (NBT) format specification commonly used with Minecraft applications, allowing easy reading/writing streams and serialization to other formats.
MIT License
25 stars 9 forks source link

CompoundTag should be backed with a Dictionary #16

Closed ForeverZer0 closed 10 months ago

ForeverZer0 commented 10 months ago

The current CompoundTag implementation behaves akin to a dictionary, but through layers of abstraction, it is actually backed by a list (see #15 ). This works in practice, but breaks the constant-time lookup speed of the CompoundTag.

This proposal is complete #15 and provide and use an actual dictionary for storing child tags.

ForeverZer0 commented 10 months ago

Complete with a4ecca8