Commit graph

108 commits

Author SHA1 Message Date
Zixuan Chen
9240ad12ee fix: add safety comment to rle 2022-10-26 23:31:34 +08:00
Zixuan Chen
3ec2aed1a6 refactor: less unsafe in loro-core 2022-10-26 23:31:34 +08:00
Zixuan Chen
3c27d34341 refactor: less unsafe code 2022-10-26 23:31:34 +08:00
Zixuan Chen
bd1b0a2215 feat: init content map 2022-10-26 23:31:34 +08:00
Zixuan Chen
3b271b5ede chore: cargo fix 2022-10-26 23:31:34 +08:00
Zixuan Chen
31b0fa3354 fix: insert / delete 0 length content 2022-10-26 23:31:34 +08:00
Zixuan Chen
2c11846c99 fix: notify fuzzy test 2022-10-26 23:31:34 +08:00
Zixuan Chen
1df1f1d2bf fix: string fuzzy 2022-10-26 23:31:34 +08:00
Zixuan Chen
0d99ceb01c feat: return cursor in iter 2022-10-26 23:31:34 +08:00
Zixuan Chen
77eac9eb30 fix: notify 2022-10-26 23:31:34 +08:00
Zixuan Chen
8f005180a4 feat: add withstartend 2022-10-26 23:31:34 +08:00
Zixuan Chen
6209de97a3 chore: cargo fix 2022-10-26 23:31:34 +08:00
Zixuan Chen
96f29ee0fa fix: range map 2022-10-26 23:31:34 +08:00
Zixuan Chen
a6cdf2e400 refactor: FindPosResult found field 2022-10-26 23:31:34 +08:00
Zixuan Chen
6851934ba6 refactor: rename field 2022-10-26 23:31:34 +08:00
Zixuan Chen
a9134a9844 refactor: find pos result 2022-10-26 23:31:34 +08:00
Zixuan Chen
72599b99d1 feat: notify 2022-10-26 23:31:34 +08:00
Zixuan Chen
66c50d4a9b feat: cursor mut 2022-10-26 23:31:34 +08:00
Zixuan Chen
f2db2fdcf2 refactor: add yspan status & remove text 2022-10-26 23:31:34 +08:00
Zixuan Chen
6181504664 refactor: move range map to rle 2022-10-26 23:31:34 +08:00
Zixuan Chen
02415676ea fix: styling 2022-10-26 23:31:34 +08:00
Zixuan Chen
50b283493d fix: cargo fix 2022-10-26 23:31:34 +08:00
Zixuan Chen
0ce9dbc309 feat: add index map 2022-10-26 23:31:34 +08:00
Zixuan Chen
067fb82058 feat: add rle global index tree trait 2022-10-26 23:31:34 +08:00
Zixuan Chen
04a20b08e1 refactor: use cumulate tree trait 2022-10-26 23:31:34 +08:00
Zixuan Chen
59f59b1c2e feat: add cursor support 2022-10-26 23:31:34 +08:00
Zixuan Chen
1bbd0e5c85 refactor: should be able to undo/redo ops from other clients 2022-10-26 23:31:34 +08:00
Zixuan Chen
29c4d2011e feat: list init 2022-10-26 23:31:34 +08:00
Zixuan Chen
da8b2668e7 chore: cargo fix 2022-08-16 17:05:50 +08:00
Zixuan Chen
722893cdb2 chore: speed up example 2022-08-16 16:46:03 +08:00
Zixuan Chen
9c86dae038 chore: make bench harder 2022-08-16 16:46:03 +08:00
Zixuan Chen
7191668a65 fix: try merging parent after its children removed 2022-08-16 16:46:03 +08:00
Zixuan Chen
ec209f233e chore: refine debug info 2022-08-16 16:46:03 +08:00
Zixuan Chen
3b091d8891 refactor: move bump pointer before Node 2022-08-16 16:46:03 +08:00
Zixuan Chen
9e66e2dc68 fix: fix a delete bug & init bench 2022-08-16 16:46:03 +08:00
Zixuan Chen
07cfc036b7 chore: add slow test config 2022-08-16 16:46:03 +08:00
Zixuan Chen
cb0701ebf0 test: add fuzzy test 2022-08-16 16:46:03 +08:00
Zixuan Chen
cdb83c0d03 refactor: simplify type 2022-08-16 16:46:03 +08:00
Zixuan Chen
9755782cf9 refactor: use ouroboros to self-ref
previous solution has a fatal bug when dropping
2022-08-16 16:46:03 +08:00
Zixuan Chen
c498a3e243 chore: fix warnings 2022-08-16 16:46:03 +08:00
Zixuan Chen
f7db72d99e chore: fix warnings 2022-08-16 16:46:03 +08:00
Zixuan Chen
12e29374dc fix: use &mut instead of BumpBox for Node
using BumpBox for struct that contains data on the same Bump will cause undefined behavior
2022-08-16 16:46:03 +08:00
Zixuan Chen
7bef4eee93 test: fix test impl 2022-08-16 16:46:03 +08:00
Zixuan Chen
6a8087c756 fix: check err 2022-08-16 16:46:03 +08:00
Zixuan Chen
687fd45f61 chore: string fuzzy test setup 2022-08-16 16:46:03 +08:00
Zixuan Chen
34632f61c3 refactor: refine style 2022-08-16 16:46:03 +08:00
Zixuan Chen
4009bc0079 refactor: remove redundant fix_size_vec 2022-08-16 16:46:03 +08:00
Zixuan Chen
bd95ad42e4 chore: custom debug for leaf & internal 2022-08-16 16:46:03 +08:00
Zixuan Chen
e30ba86653 fix: update leaf cache when create new elem by del 2022-08-16 16:46:03 +08:00
Zixuan Chen
c8a83fe676 fix: post delete handler 2022-08-16 16:46:03 +08:00