CleanroomMC / Cleanroom

Cleanroom Minecraft.
GNU Lesser General Public License v2.1
203 stars 41 forks source link

`Open Computers` took suspiciously long to load `jdk.internal.loader.NativeLibraries.load()` #62

Open Krutoy242 opened 6 months ago

Krutoy242 commented 6 months ago

This method took 20 seconds to load. Its really a lot considering i load modpack in 6 minutes. It was never this long on Java 8, only on Java 21. On Java 8 it took about 5 seconds.

image

https://spark.lucko.me/IUXt4qcv0A

debug.log

Rongmario commented 6 months ago

Cannot be replicated with Cleanroom + OpenComputers on Linux. Will have to try on Windows + potentially investigate if the modpack has something to do with it.

Krutoy242 commented 6 months ago

Replicated on censoredasm5+OpenComputers+spark:

image

https://spark.lucko.me/23qxX4PO3t

Update: I noticed that if im using Bansoukou to remove Lua5.2 and 5.4 libraries, game loads 40 seconds faster. Seems like each .dll file took 20 seconds each.

image

On non-Cleanroom loader, this commit saved me 5-10 seconds only. There its definitely ~40 seconds.