Commit Graph

29 Commits

Author SHA1 Message Date
themode
72461ade73 instanceof pattern matching in LocalCache 2021-10-28 02:55:40 +02:00
TheMode
f07ab21d3e Use LocalCache for deflaters
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-25 20:29:47 +02:00
TheMode
9fe3f28497 Improve ThreadLocal performance when calling from a minestom thread
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-25 19:37:14 +02:00
TheMode
1c3bb5b0ff First NIO attempt
Signed-off-by: TheMode <themode@outlook.fr>
2021-08-03 12:57:13 +02:00
TheMode
e635e29a16 Replace guava cache to caffeine 2021-06-20 22:32:06 +02:00
TheMode
cc97062dfa Remove soft values 2021-05-18 16:18:51 +02:00
TheMode
6a712b33a0 Revert "Added CachedObject to access a single-object cache"
This reverts commit 1c39e06d
2021-05-13 08:32:26 +02:00
TheMode
1c39e06d55 Added CachedObject to access a single-object cache 2021-05-13 08:06:42 +02:00
TheMode
165b7bced2 Only direct buffer should be used for IO 2021-05-08 22:45:57 +02:00
TheMode
e92fb1e8d5 Invalidate cache chunk packets when unloaded 2021-04-23 17:52:10 +02:00
TheMode
e4f7a66046 Packet cache rename 2021-04-10 02:02:59 +02:00
TheMode
01d233f7d8 Overall performance improvement 2021-04-09 05:40:40 +02:00
TheMode
b386472eb3 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	src/main/java/net/minestom/server/network/player/NettyPlayerConnection.java
2021-03-30 22:40:48 +02:00
TheMode
f3eb3f6e34 Remove packet caching to CacheablePacket#getCache
Signed-off-by: TheMode <themode@outlook.fr>
2021-03-30 22:38:45 +02:00
themode
f3a67f8f50 Fix heap buffer being used for cached packets 2021-03-29 20:31:06 +02:00
themode
cd75740e41 Fix compilation 2021-03-21 11:46:04 +01:00
themode
a927938677 Fix cached packets being outdated 2021-03-02 19:14:52 +01:00
themode
419ebe7553 Use soft references for cached packet instead of weak 2021-02-26 12:48:53 +01:00
TheMode
d3bea57ddc Packet caching cleanup
Signed-off-by: TheMode <themode@outlook.fr>
2021-02-25 20:14:13 +01:00
themode
3d585825b2 Use weak references for cached values 2021-02-22 08:43:06 +01:00
themode
04b5a4f166 Use google common cache instead of our own dirty solution 2021-02-22 08:41:38 +01:00
Felix Cravic
ae845e38ab Small cleanup 2020-11-26 01:24:43 +01:00
Eoghanmc22
d1138f9f81 Fix race condition 2020-11-25 11:28:37 -05:00
themode
500fc2e903 Fixed chunk being asked two times 2020-11-21 08:06:04 +01:00
themode
58f035fc4a Added lastUpdate param comment in TemporaryCache 2020-11-21 05:53:30 +01:00
themode
206991ad0a Fixed TemporaryCache#retrieve not taking the last update time 2020-11-20 18:15:37 +01:00
themode
da4216a51f Fixed chunk synchronization during generation and packet sending 2020-11-20 16:37:59 +01:00
themode
f1c0c99781 Fixed TemporaryCache check 2020-11-20 11:59:58 +01:00
themode
075ff7600a Added a whole new caching system for ChunkDataPacket and UpdateLightPacket 2020-11-20 11:14:15 +01:00