1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
Commit graph

15 commits

Author SHA1 Message Date
mat
0641dac7f0 simd number arrays 2023-03-23 20:20:13 -05:00
mat
ecb3f2ffd7 rename Tag to Nbt 2023-03-23 13:55:33 +00:00
mat
d08bf9b943 make encode not a Result and small optimizations 2023-03-23 00:19:00 -05:00
mat
c3b63ad129 binary search map 2023-03-22 23:18:55 -05:00
mat
228ee4a2f0 optimize nbt lists 2023-03-22 19:52:19 +00:00
mat
6738be8090 use compact_str in nbt 2023-03-22 13:52:38 +00:00
mat
40a0c8acfb slightly optimize azalea_nbt::Tag::id 2023-03-11 16:38:13 -06:00
mat
bc3aa9467a
Replace impl Read with Cursor<&[u8]> (#26)
* Start getting rid of Cursor

* try to make the tests pass and fail

* make the tests pass

* remove unused uses

* fix clippy warnings

* fix potential OOM exploits

* fix OOM in az-nbt

* fix nbt benchmark

* fix a test

* start replacing it with Cursor<Vec<u8>>

* wip

* fix all the issues

* fix all tests

* fix nbt benchmark

* fix warnings
2022-10-07 20:12:36 -05:00
mat
ac4d675d44
NBT decoder optimizations (#17)
* replace HashMap with AHashMap

* faster read_string by just doing read_exact

* re-enable all the benchmarks
2022-08-19 14:14:08 -05:00
mat
567c6f4f2c Reduce usage of AsyncRead
We already receive everything from the server when it tells us the length, so we can actually just treat the stream as a Read instead of an AsyncRead.
2022-05-01 21:54:03 -05:00
mat
248f752748 simplify error handling 2022-04-22 04:33:58 +00:00
mat
6ae94b96e6 start adding nbt to the protocol 2021-12-20 15:22:02 -06:00
mat
b91b579bef add more tests and benchmarks for nbt 2021-12-20 01:53:23 -06:00
mat
f50cdfccfc ::with_capacity instead of ::new for vecs in nbt 2021-12-19 20:20:43 -06:00
mat
55c9f58219 nbt tests 2021-12-19 13:07:54 -06:00
Renamed from azalea-nbt/tests/decode.rs (Browse further)