aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorAikar <[email protected]>2020-12-21 11:03:36 -0500
committerAikar <[email protected]>2020-12-21 11:03:36 -0500
commitc83a661f6e4d12f787cc70270075e114af874e01 (patch)
treee9b18e25adcb02275749c3c26ea1b41987b609af /scripts
parentabca14ff961c4c67615aad7bba6287140d02af56 (diff)
downloadPaper-c83a661f6e4d12f787cc70270075e114af874e01.tar.gz
Paper-c83a661f6e4d12f787cc70270075e114af874e01.zip
Optimize Dynamic#get Missing Keys
get was calling toString() on every NBT object that was ever asked for an optional key from the object to build a string for the error text. When done on large NBT objects, this was using a ton of computation time building the JSON representation of the NBT object. Now we will just skip the value when 99.9999% of the time the text is never even printed.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/importmcdev.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/importmcdev.sh b/scripts/importmcdev.sh
index 4af8493044..0051a75308 100755
--- a/scripts/importmcdev.sh
+++ b/scripts/importmcdev.sh
@@ -108,6 +108,7 @@ importLibrary com.mojang authlib com/mojang/authlib yggdrasil/YggdrasilGameProfi
importLibrary com.mojang datafixerupper com/mojang/datafixers DataFixerBuilder.java
importLibrary com.mojang datafixerupper com/mojang/datafixers/util Either.java
importLibrary com.mojang datafixerupper com/mojang/serialization/codecs KeyDispatchCodec.java
+importLibrary com.mojang datafixerupper com/mojang/serialization Dynamic.java
########################################################
########################################################