Mojang / DataFixerUpper

A set of utilities designed for incremental building, merging and optimization of data transformations.
MIT License
1.19k stars 138 forks source link

Optimize Bootstrap to pre build faster by using multiple threads #28

Closed aikar closed 6 years ago

aikar commented 6 years ago

Divide up the work into multiple queues, and send those tasks back into the executor.

This lets us precache everything concurrently, reducing precache time by about 75%~ on a typical 8 core system.

Bootstrap time was seen taking up to 30 seconds of time in testing, which is long enough in Minecraft that data conversions may need to occur.

This brought it down to about 6-7 seconds.

aikar commented 6 years ago

Comparison: Before: After:

RainWarrior commented 6 years ago

29