Closed AlexIIL closed 1 year ago
By replacing List.contains with Set.contains.
I encountered this by testing @SplendidAlakey s pack https://github.com/SplendidAlakey/Perfectly-Splendid, and I noticed that 12s of loading time is spent in ArrayList.contains in this method - so this PR should speed that up?
ArrayList.contains
(Draft because I haven't tested this yet)
I think even with an unlinked hash set it should speed up, can't believe I forgot my own benchmark table too.
By replacing List.contains with Set.contains.
I encountered this by testing @SplendidAlakey s pack https://github.com/SplendidAlakey/Perfectly-Splendid, and I noticed that 12s of loading time is spent in
ArrayList.contains
in this method - so this PR should speed that up?(Draft because I haven't tested this yet)