Commit graph

132 commits

Author SHA1 Message Date
9a61408c93 Remove unnecessary dependency and mark some fields pub 2024-12-31 15:19:09 -05:00
mat
b2ffaac105 impl Debug for NonRootError 2024-12-23 01:46:19 +00:00
mat
27766aa5fd add more borrow=owned tests 2024-10-18 19:45:50 +00:00
mat
6c54c4c240 fix errors on big-endian systems 2024-10-18 06:58:40 +00:00
mat
969fd38fa6 make more types from ::borrow::{compound,list} public
closes #14
2024-10-18 06:22:05 +00:00
mat
77a541efd4 remove compound approx_len 2024-10-18 06:12:20 +00:00
mat
d7eb3e4ed1 fix floats being incorrectly rounded 2024-10-07 16:02:35 +00:00
mat
345b368ccb Release 0.6.1
simdnbt@0.6.1

Generated by cargo-workspaces
2024-09-15 01:34:24 -05:00
amy
8aaa78a033
fix: convert array len to u32 before writing (#13) 2024-08-03 23:08:47 -05:00
mat
6d23e4e481 use a u64 instead of a union for TapeElement 2024-07-27 03:34:59 +00:00
mat
16c67d2743 update some parts of the readme 2024-07-22 00:26:05 +00:00
mat
61a91e2392 rename len to approx_len and exact_len to len 2024-07-22 00:19:56 +00:00
mat
6e182ee1dc
Optimize by using slimmer error types (#9)
* Optimize errors by using slimmer error types

* better ParsingStackElement enum ordering
2024-07-21 19:02:51 -05:00
mat
7a7e0e2a10
replace residua-mutf8 with simd_cesu8 (#11) 2024-07-19 05:40:12 -05:00
mat
4fa1f11f76 fix clippy warning in fuzz code 2024-07-15 03:26:18 +00:00
mat
cedfe92ff0 fix incorrect integer reading on big-endian systems 2024-07-15 03:24:26 +00:00
mat
d5cf8516d2 Release 0.6.0
simdnbt@0.6.0
simdnbt-derive@0.6.0

Generated by cargo-workspaces
2024-07-04 23:40:28 -05:00
mat
24e81de255 upgrade deps 2024-07-05 04:40:02 +00:00
mat
d019003a3a update borrow benchmarks in readme 2024-07-05 04:37:31 +00:00
mat
150a00cb29
Use a tape for reading in simdnbt::borrow and probably introduce even more UB (#8)
* write structs and unions for tape

* war crimes

* except they're not war crimes if you're winning

* clippy and uncomment disabled examples

* cleanup and fix ub

* get(0) -> first()

* add fuzzer and fix ub lmao

* fix an out of bounds write

* fix macros and make it more useable
2024-07-04 23:28:59 -05:00
mat
eb960e076e rename realworld to hypixel 2024-05-18 03:12:06 +00:00
mat
c05ac6ee43 slightly optimize some types of lists 2024-05-18 03:04:57 +00:00
mat
07bb1e7036 Release 0.5.2
simdnbt@0.5.2
simdnbt-derive@0.5.2

Generated by cargo-workspaces
2024-05-14 16:32:49 -05:00
mat
54710304ad fix failing compilation when deny_unknown_fields is set 2024-05-14 21:31:45 +00:00
mat
0a8149e459 Release 0.5.1
simdnbt@0.5.1

Generated by cargo-workspaces
2024-05-14 16:18:50 -05:00
mat
86194a4680 add borrow::NbtCompound::keys 2024-05-14 21:18:40 +00:00
mat
8e1e0af3ae Release 0.5.0
simdnbt@0.5.0

Generated by cargo-workspaces
2024-05-14 05:19:41 -05:00
mat
d7b54cd3f9 make functions that could cause UB private, and add new functions for reading at simdnbt::borrow and owned 2024-05-14 10:16:32 +00:00
mat
c83d29855a Release 0.4.3
simdnbt@0.4.3
simdnbt-derive@0.4.3

Generated by cargo-workspaces
2024-05-13 23:47:01 -05:00
mat
953408f164 update simdnbt benchmark numbers in readme 2024-05-14 04:46:49 +00:00
mat
ac66cd4031 slightly optimize lists of non-recursing non-primitives 2024-05-14 02:43:24 +00:00
mat
f47749f7a8 keep track of depths for compounds and lists separately for 10% speedup 2024-05-14 01:54:39 +00:00
mat
740e7afbe9 optimize reading arrays of compounds in owned read 2024-05-14 00:07:53 +00:00
mat
608cf43886 inline some functions 2024-05-13 23:45:52 +00:00
mat
39b68ea725 add some inlines for writing 2024-05-13 11:47:05 +00:00
mat
bfb721890d fix order of libraries in readme 2024-05-13 11:23:14 +00:00
mat
7e29630c8b
Optimize owned (#5)
* inline read_with_type for 12% speedup

* optimize creating compounds

* fix incorrect comment in mutf8.rs

* update benchmarks in readme
2024-05-13 06:21:14 -05:00
mat
2a9a1ca8d7 add owned benchmarks 2024-05-13 03:18:22 +00:00
mat
4d660133d4
Merge pull request #4 from azalea-rs/reuse-allocs
Optimize simdnbt::borrow and probably introduce UB
2024-05-12 21:39:51 -05:00
mat
0e32cbd4b8 add #[inline(always)] to read_with_type 2024-05-13 02:32:53 +00:00
mat
2b96df7c7f slightly optimize writing tags to memory 2024-05-13 02:24:13 +00:00
mat
2fb9ba2629 remove repr u8 from NbtTag so it can be another byte smaller 2024-05-13 01:14:26 +00:00
mat
97b9d5c76a fix ub on error and add a test for that 2024-05-13 00:39:55 +00:00
mat
a6f47171bf update table in readme 2024-05-12 23:57:02 +00:00
mat
5ffce1a309 make NbtTag one byte smaller by removing all Vecs in NbtList 2024-05-12 23:02:23 +00:00
mat
33366ff085 fix memory leak on error 2024-05-12 21:01:29 +00:00
mat
4aa3effbf1 add comment for min alloc size 2024-05-12 20:07:37 +00:00
mat
927df9b33b make it work for arrays of tags too 2024-05-12 14:46:04 -05:00
mat
1ab27e531e optimize compound tag allocations 2024-05-12 00:51:00 -05:00
mat
860d6e1b3a don't panic on invalid mutf8 2024-03-16 22:23:09 -05:00
mat
e16aeb03e2 Release 0.4.2
simdnbt@0.4.2

Generated by cargo-workspaces
2024-03-15 16:39:01 -05:00
mat
901ec1833f add benchmarks table to readme 2024-03-11 15:37:24 -05:00
mat
2f963e1b71 add shen-nbt5 to benchmarks 2024-03-10 23:06:24 -05:00
mat
96f73c9de3 fix unsoundness by sealing SwappableNumber 2024-03-10 23:06:02 -05:00
mat
33b8f0db99 fix NbtList::Double write code to be consistent with the others 2024-03-09 19:45:29 -06:00
mat
a5e43348c8 Release 0.4.1
simdnbt@0.4.1
simdnbt-derive@0.4.1

Generated by cargo-workspaces
2024-03-09 18:31:46 -06:00
mat
041deb5db6 clippy 2024-03-09 18:14:34 -06:00
mat
73ab006f7c fix UB in swap_endianness
fixes #3
2024-03-09 18:04:21 -06:00
mat
4594562ef0 make doc use readme inside simdnbt dir 2024-01-25 00:21:34 -06:00
mat
1ccfafe55e upgrade deps 2024-01-25 00:20:43 -06:00
mat
8c9065e7ac make readme a symlink 2024-01-25 00:13:51 -06:00
mat
12d712c936 Release 0.4.0
simdnbt@0.4.0
simdnbt-derive@0.4.0

Generated by cargo-workspaces
2024-01-24 23:19:19 -06:00
mat
d71b45ef3e split_first_chunk instead of split_array_ref 2024-01-24 23:18:14 -06:00
mat
ecb0c42f1f use mimalloc 2024-01-19 18:21:44 -06:00
mat
4e0002639b upgrade deps 2024-01-18 22:12:53 -06:00
mat
55ddbe34e2 rewrite readme 2024-01-18 22:02:51 -06:00
mat
f89dc8e2bc slightly improve doc 2024-01-11 14:51:20 -06:00
mat
c255ab673a add NbtList::as_nbt_tags 2023-12-28 18:30:19 -06:00
mat
922701104a add NbtTag::read_optional 2023-12-28 17:46:28 -06:00
mat
00c6ad1b41
typo "sidmnbt" 2023-12-27 19:06:59 -06:00
mat
8d43740c4e simdnbt is in the azalea-rs org now 2023-12-02 14:05:48 -06:00
mat
d427ea3f55 Release 0.3.0
simdnbt@0.3.0
simdnbt-derive@0.3.0

Generated by cargo-workspaces
2023-12-02 13:54:12 -06:00
mat
049b604498 random fixes 2023-12-01 20:48:52 -06:00
mat
d10fa0fc38 make FromNbtTag take simdnbt::borrow::NbtTag 2023-11-28 20:16:18 -06:00
mat
e2864bcf12 upgrade deps 2023-11-28 12:00:13 -06:00
mat
911a5e4524 set azalea-nbt commit rev since it was removed 2023-11-28 11:48:07 -06:00
mat
71fab2c85b Release 0.2.1
simdnbt@0.2.1
simdnbt-derive@0.2.1

Generated by cargo-workspaces
2023-11-19 16:24:31 -06:00
mat
878d115b70 Nbt::default 2023-11-19 16:24:20 -06:00
mat
94004e2021 bump required simdnbt-derive version 2023-11-19 16:16:12 -06:00
mat
d91445744e add metadata fields to simdnbt-derive 2023-11-19 16:15:36 -06:00
mat
3fbbd3ed38 bump version 2023-11-19 16:14:53 -06:00
mat
820cb1f334 fix some bugs 2023-11-19 16:13:36 -06:00
mat
57dfc2c1a9 add flatten, deny_unknown_fields, generics, and support more types of HashMap keys 2023-11-19 13:58:28 -06:00
mat
331d135910 Serialize macro 2023-11-19 00:14:04 -06:00
mat
7d4b7b9a22 derive macro 2023-11-18 22:54:15 -06:00
mat
1526a21276 random polish 2023-09-21 22:51:39 -05:00
mat
fe2136ce11 rename OptionalNbt to Nbt and Nbt to BaseNbt 2023-09-21 20:37:06 -05:00
mat
872ac20e5d pub use CompoundTag and ListTag 2023-09-21 18:20:57 -05:00
mat
a161b2d0af OptionalNbt::write 2023-09-21 18:01:02 -05:00
mat
9b6c33e65d rename error type back to just Error 2023-09-21 17:58:14 -05:00
mat
a75baa7a90 add traits to OptionalNbt 2023-09-21 17:55:36 -05:00
mat
76347de9eb OptionalNbt 2023-09-21 17:48:42 -05:00
mat
837b5990e7 derive Clone and PartialEq 2023-09-21 01:14:50 -05:00
mat
b298444cdf delete callgrind output 2023-09-21 01:02:55 -05:00
mat
40f38c34ef optimize writing 2023-09-21 01:02:23 -05:00
mat
d2f3fdefc7 add writing owned data 2023-09-20 20:26:00 -05:00
mat
35d335ffd1 add mut functions 2023-09-20 18:02:18 -05:00
mat
fb2f3770d2 base support for owned data 2023-09-20 17:25:24 -05:00
mat
46173b6bdc move stuff into borrow directory 2023-09-20 16:53:57 -05:00
mat
e32791800d
Merge pull request #1 from szabgab/patch-1
Update Cargo.toml add repository
2023-09-05 10:02:50 -05:00