diff --git a/patches/server/0064-Reduce-lambda-and-Optional-allocation-in-EntityBased.patch b/patches/server/0064-Reduce-lambda-and-Optional-allocation-in-EntityBased.patch index 0dfed0f..32683cc 100644 --- a/patches/server/0064-Reduce-lambda-and-Optional-allocation-in-EntityBased.patch +++ b/patches/server/0064-Reduce-lambda-and-Optional-allocation-in-EntityBased.patch @@ -4,7 +4,7 @@ Date: Sat, 26 Nov 2022 16:28:23 +0100 Subject: [PATCH] Reduce lambda and Optional allocation in EntityBasedExplosionDamageCalculator -License: LGPL-3.0 (https://www.gnu.org/licenses/lgpl-3.0.nl.html) +License: LGPL-3.0 (https://www.gnu.org/licenses/lgpl-3.0.html) This patch is based on the following commit: "new: remove lambda allocation in EntityExplosionBehavior" diff --git a/patches/server/0065-Replace-AI-goal-set-with-optimized-collection.patch b/patches/server/0065-Replace-AI-goal-set-with-optimized-collection.patch new file mode 100644 index 0000000..8b19690 --- /dev/null +++ b/patches/server/0065-Replace-AI-goal-set-with-optimized-collection.patch @@ -0,0 +1,35 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: MartijnMuijsers +Date: Wed, 30 Nov 2022 13:49:11 +0100 +Subject: [PATCH] Replace AI goal set with optimized collection + +License: LGPL-3.0 (https://www.gnu.org/licenses/lgpl-3.0.html) + +This patch is based on the following commit: +"new: replace AI goal set with optimized collection" +By: 2No2Name <2No2Name@web.de> +As part of: Lithium (https://github.com/CaffeineMC/lithium-fabric) +Licensed under: LGPL-3.0 (https://www.gnu.org/licenses/lgpl-3.0.nl.html) + +diff --git a/src/main/java/net/minecraft/world/entity/ai/goal/GoalSelector.java b/src/main/java/net/minecraft/world/entity/ai/goal/GoalSelector.java +index 1805aacd982dae8d971cfad0ead23c161badb095..ead2e1935e133e7729949dbd8fc48667ba6e088c 100644 +--- a/src/main/java/net/minecraft/world/entity/ai/goal/GoalSelector.java ++++ b/src/main/java/net/minecraft/world/entity/ai/goal/GoalSelector.java +@@ -10,6 +10,8 @@ import java.util.Map; + import java.util.Set; + import java.util.function.Supplier; + import java.util.stream.Stream; ++ ++import it.unimi.dsi.fastutil.objects.ObjectLinkedOpenHashSet; + import net.minecraft.util.profiling.ProfilerFiller; + import org.slf4j.Logger; + +@@ -27,7 +29,7 @@ public class GoalSelector { + } + }; + private final Map lockedFlags = new EnumMap<>(Goal.Flag.class); +- private final Set availableGoals = Sets.newLinkedHashSet(); ++ private final Set availableGoals = new ObjectLinkedOpenHashSet<>(); // Gale - Lithium - replace AI goal set with optimized collection + private final Supplier profiler; + private final EnumSet disabledFlags = EnumSet.noneOf(Goal.Flag.class); // Paper unused, but dummy to prevent plugins from crashing as hard. Theyll need to support paper in a special case if this is super important, but really doesn't seem like it would be. + private final com.destroystokyo.paper.util.set.OptimizedSmallEnumSet goalTypes = new com.destroystokyo.paper.util.set.OptimizedSmallEnumSet<>(Goal.Flag.class); // Paper - remove streams from pathfindergoalselector diff --git a/patches/server/0065-Player-canSee-by-entity-UUID.patch b/patches/server/0066-Player-canSee-by-entity-UUID.patch similarity index 100% rename from patches/server/0065-Player-canSee-by-entity-UUID.patch rename to patches/server/0066-Player-canSee-by-entity-UUID.patch diff --git a/patches/server/0066-Spread-out-sending-all-player-info.patch b/patches/server/0067-Spread-out-sending-all-player-info.patch similarity index 100% rename from patches/server/0066-Spread-out-sending-all-player-info.patch rename to patches/server/0067-Spread-out-sending-all-player-info.patch diff --git a/patches/server/0067-Optimize-player-list-for-sending-player-info.patch b/patches/server/0068-Optimize-player-list-for-sending-player-info.patch similarity index 100% rename from patches/server/0067-Optimize-player-list-for-sending-player-info.patch rename to patches/server/0068-Optimize-player-list-for-sending-player-info.patch diff --git a/patches/server/0068-Skip-PlayerCommandSendEvent-if-there-are-no-listener.patch b/patches/server/0069-Skip-PlayerCommandSendEvent-if-there-are-no-listener.patch similarity index 100% rename from patches/server/0068-Skip-PlayerCommandSendEvent-if-there-are-no-listener.patch rename to patches/server/0069-Skip-PlayerCommandSendEvent-if-there-are-no-listener.patch diff --git a/patches/server/0069-Send-multiple-keep-alive-packets.patch b/patches/server/0070-Send-multiple-keep-alive-packets.patch similarity index 100% rename from patches/server/0069-Send-multiple-keep-alive-packets.patch rename to patches/server/0070-Send-multiple-keep-alive-packets.patch diff --git a/patches/server/0070-Specific-interval-TPS-API.patch b/patches/server/0071-Specific-interval-TPS-API.patch similarity index 100% rename from patches/server/0070-Specific-interval-TPS-API.patch rename to patches/server/0071-Specific-interval-TPS-API.patch diff --git a/patches/server/0071-5-second-TPS-average.patch b/patches/server/0072-5-second-TPS-average.patch similarity index 100% rename from patches/server/0071-5-second-TPS-average.patch rename to patches/server/0072-5-second-TPS-average.patch diff --git a/patches/server/0072-Measure-last-tick-time.patch b/patches/server/0073-Measure-last-tick-time.patch similarity index 100% rename from patches/server/0072-Measure-last-tick-time.patch rename to patches/server/0073-Measure-last-tick-time.patch diff --git a/patches/server/0073-Last-tick-time-API.patch b/patches/server/0074-Last-tick-time-API.patch similarity index 100% rename from patches/server/0073-Last-tick-time-API.patch rename to patches/server/0074-Last-tick-time-API.patch diff --git a/patches/server/0074-Show-last-tick-time-in-tps-command.patch b/patches/server/0075-Show-last-tick-time-in-tps-command.patch similarity index 100% rename from patches/server/0074-Show-last-tick-time-in-tps-command.patch rename to patches/server/0075-Show-last-tick-time-in-tps-command.patch diff --git a/patches/server/0075-Collision-physics-check-before-vehicle-check.patch b/patches/server/0076-Collision-physics-check-before-vehicle-check.patch similarity index 100% rename from patches/server/0075-Collision-physics-check-before-vehicle-check.patch rename to patches/server/0076-Collision-physics-check-before-vehicle-check.patch diff --git a/patches/server/0076-Variable-main-thread-task-delay.patch b/patches/server/0077-Variable-main-thread-task-delay.patch similarity index 100% rename from patches/server/0076-Variable-main-thread-task-delay.patch rename to patches/server/0077-Variable-main-thread-task-delay.patch diff --git a/patches/server/0077-Reduce-RandomSource-instances.patch b/patches/server/0078-Reduce-RandomSource-instances.patch similarity index 100% rename from patches/server/0077-Reduce-RandomSource-instances.patch rename to patches/server/0078-Reduce-RandomSource-instances.patch diff --git a/patches/server/0078-CPU-cores-estimation.patch b/patches/server/0079-CPU-cores-estimation.patch similarity index 100% rename from patches/server/0078-CPU-cores-estimation.patch rename to patches/server/0079-CPU-cores-estimation.patch diff --git a/patches/server/0079-Add-centralized-AsyncExecutor.patch b/patches/server/0080-Add-centralized-AsyncExecutor.patch similarity index 100% rename from patches/server/0079-Add-centralized-AsyncExecutor.patch rename to patches/server/0080-Add-centralized-AsyncExecutor.patch diff --git a/patches/server/0080-Remove-Paper-async-executor.patch b/patches/server/0081-Remove-Paper-async-executor.patch similarity index 100% rename from patches/server/0080-Remove-Paper-async-executor.patch rename to patches/server/0081-Remove-Paper-async-executor.patch diff --git a/patches/server/0081-Remove-Paper-cleaner-executor.patch b/patches/server/0082-Remove-Paper-cleaner-executor.patch similarity index 100% rename from patches/server/0081-Remove-Paper-cleaner-executor.patch rename to patches/server/0082-Remove-Paper-cleaner-executor.patch diff --git a/patches/server/0082-Remove-background-executor.patch b/patches/server/0083-Remove-background-executor.patch similarity index 100% rename from patches/server/0082-Remove-background-executor.patch rename to patches/server/0083-Remove-background-executor.patch diff --git a/patches/server/0083-Remove-bootstrap-executor.patch b/patches/server/0084-Remove-bootstrap-executor.patch similarity index 100% rename from patches/server/0083-Remove-bootstrap-executor.patch rename to patches/server/0084-Remove-bootstrap-executor.patch diff --git a/patches/server/0084-Remove-world-upgrade-executors.patch b/patches/server/0085-Remove-world-upgrade-executors.patch similarity index 100% rename from patches/server/0084-Remove-world-upgrade-executors.patch rename to patches/server/0085-Remove-world-upgrade-executors.patch diff --git a/patches/server/0085-Remove-tab-complete-executor.patch b/patches/server/0086-Remove-tab-complete-executor.patch similarity index 100% rename from patches/server/0085-Remove-tab-complete-executor.patch rename to patches/server/0086-Remove-tab-complete-executor.patch diff --git a/patches/server/0086-Remove-text-filter-executor.patch b/patches/server/0087-Remove-text-filter-executor.patch similarity index 100% rename from patches/server/0086-Remove-text-filter-executor.patch rename to patches/server/0087-Remove-text-filter-executor.patch