aboutsummaryrefslogtreecommitdiffhomepage
path: root/LICENSE.md
diff options
context:
space:
mode:
authorBjarne Koll <[email protected]>2021-03-03 03:52:43 +0100
committerMiniDigger | Martin <[email protected]>2021-03-03 20:26:44 +0100
commit26be708f45ba9f3232883945bf17186353b7d806 (patch)
tree9c82c22373e01c5a22acf5e885e4ebcd6a11af9a /LICENSE.md
parent5b5989b213ad947374b0e74f313029eb66ba9365 (diff)
downloadPaper-26be708f45ba9f3232883945bf17186353b7d806.tar.gz
Paper-26be708f45ba9f3232883945bf17186353b7d806.zip
Remove streams from SensorNearest
The behavioural nearby sensors are validated every tick on the entities that registered the respective sensors and are therefore a good subject to performance improvements. More specifically this commit replaces the Stream#filter usage with ArrayList#removeIf as the removeIf method on an array list is heavily optimized towards a single internal array re-allocation without any further overhead on the removeIf call. The only negative of this change is the rather agressive diff these patches introduce as the methods are basically being reimplemented compared to the previous stream-based implementation. See: https://nipafx.dev/java-stream-performance/ Note: Updated LICENCE.md to release this commit under MIT
Diffstat (limited to 'LICENSE.md')
-rw-r--r--LICENSE.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/LICENSE.md b/LICENSE.md
index 14583a062b..c3116e315d 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -47,4 +47,5 @@ KennyTV <[email protected]>
Machine_Maker <[email protected]>
Ivan Pekov <[email protected]>
+Bjarne Koll <[email protected]>
```