Storing resource files as hashmap as structure

I look through the Minecraft directory and find that their resources (image, sound, binary data) are stored in a way that looks like a HashMap or like a git repository.

Here are JSON files like HashMap,

HashMap Json

Here is the actual filesystem.

Actual File System

My question is, why would they do this (benefits?), How to do it and what is the correct term for this type of storing resource file strategies?

+3


source to share


1 answer


It is called a B-tree. Pros - constant search time.



Sorry - very short search time. Log (n) to be precise. Thanks Olivier

+3


source







All Articles