Commit graph

783 commits

Author SHA1 Message Date
leeeon233
85865e592a feat: state snapshot import 2022-12-13 23:02:32 +08:00
leeeon233
3727fb7f72 fix: add compress 2022-12-13 23:01:17 +08:00
leeeon233
b2c3010454 chore: modify fuzz 2022-12-13 23:01:17 +08:00
leeeon233
86b65ec638 chore: fix container mergable 2022-12-13 23:01:17 +08:00
leeeon233
48d784bcd1 feat: add map state snapshot 2022-12-13 23:01:17 +08:00
Zixuan Chen
c7e5c907d5 fix: list 2022-12-13 23:01:17 +08:00
leeeon233
8037f4034d chore: bug list rle range 2022-12-13 23:01:17 +08:00
leeeon233
2fedf8d396 feat: state snapshot
Co-authored-by: Zixuan Chen <me@zxch3n.com>
2022-12-13 23:01:17 +08:00
Zixuan Chen
83af4d07eb
Merge pull request #44 from loro-dev/feat-wasm-encode
Feat: wasm encode
2022-12-13 16:34:54 +08:00
Zixuan Chen
035d03c89e chore(wasm): fix build wasm script 2022-12-13 16:33:24 +08:00
Zixuan Chen
e85ba3f340 fix: fuzz deps 2022-12-13 16:26:32 +08:00
Zixuan Chen
1ce91be046 fix: merge err 2022-12-13 16:23:52 +08:00
Zixuan Chen
8b5ebef756 Merge branch 'main' into perf-wasm-analysis 2022-12-13 16:19:33 +08:00
Zixuan Chen
f322bde4c9 Perf remove string pool mutex (#41)
This is based on append-only-bytes. It allows us to share str data in a lock-free way. The downside of this method is it tends to use more memory
2022-12-13 16:18:56 +08:00
Zixuan Chen
cf1f7dc443 fix: ues try_lock 2022-12-13 14:47:19 +08:00
Zixuan Chen
7c4ee1bb41 docs: add fixme comment 2022-12-13 01:42:07 +08:00
Zixuan Chen
680a0e1ce2 refactor: add import batch interface 2022-12-13 01:40:13 +08:00
Zixuan Chen
95daf02a29 refactor: rename vv to vv_cloned to emphasize cost 2022-12-13 01:39:57 +08:00
Zixuan Chen
b6481d6c5d perf: use patched version vector when importing 2022-12-13 01:37:32 +08:00
Zixuan Chen
90fe4cc69e fix: remove needless check 2022-12-12 16:18:55 +08:00
Zixuan Chen
dc4229d609 perf: reduce heap allocations 2022-12-12 16:01:58 +08:00
Zixuan Chen
97a27ffa4e perf: use bump mode in cursor map 2022-12-12 14:17:32 +08:00
Zixuan Chen
66c2bb8030 perf: drop text tracker after applying 2022-12-12 14:15:11 +08:00
Zixuan Chen
1255e32101 perf: reclaim list tracker mem after applying 2022-12-12 13:48:49 +08:00
Zixuan Chen
313b1cc8c0 bench: add wasm bench to web test 2022-12-12 13:44:49 +08:00
Zixuan Chen
0c22c3e5e4 perf: reduce space alloc 2022-12-10 10:15:54 +08:00
Zixuan Chen
098203ba5a refactor: version vector iter diff 2022-12-09 23:14:00 +08:00
Zixuan Chen
4ab86e4029 perf: reduce checkout when importing 2022-12-09 21:20:59 +08:00
Zixuan Chen
68bd7179c4
Perf remove string pool mutex (#41)
This is based on append-only-bytes. It allows us to share str data in a lock-free way. The downside of this method is it tends to use more memory
2022-12-09 17:22:33 +08:00
Zixuan Chen
848f66f327 chore(ci): install wasm-bindgen 2022-12-09 12:11:01 +08:00
Zixuan Chen
2903a47ddb chore(ci): fix build script in ci 2022-12-09 12:03:45 +08:00
Zixuan Chen
1400804fb1 chore(ci): add wasm32 target 2022-12-09 11:40:15 +08:00
Zixuan Chen
85f0d98385 chore(wasm): fix wasm build & test scripts 2022-12-09 11:33:39 +08:00
Zixuan Chen
569cfdcf5e perf(rle): use simple iter range for range_map 2022-12-09 10:46:55 +08:00
Zixuan Chen
bc57f01e18 fix: simplify op set 2022-12-09 10:46:55 +08:00
Zixuan Chen
3eff9a2091 bench: add benchmark for many concurrent actors 2022-12-09 10:46:55 +08:00
Zixuan Chen
b74ab34f79 chore(wasm): make build parallel 2022-12-09 10:46:55 +08:00
Zixuan Chen
f9f556f822 fix: add local info 2022-12-09 10:46:55 +08:00
Zixuan Chen
bc66583863 fix: container may be deleted from doc when editing 2022-12-09 10:46:55 +08:00
Zixuan Chen
05f19de9de fix: try to avoid recursive lock in notification 2022-12-09 10:46:55 +08:00
Zixuan Chen
a24e284fba fix: hierarchy notify 2022-12-09 10:46:55 +08:00
Zixuan Chen
db29178982 fix: make subscription work 2022-12-09 10:46:55 +08:00
Zixuan Chen
9a3194edef chore(wasm): change the build methods 2022-12-09 10:46:55 +08:00
Zixuan Chen
572fe857a0 feat(wasm): root subscribe & unsubscribe 2022-12-09 10:46:55 +08:00
Zixuan Chen
b98c22570d fix: get container by id err 2022-12-09 10:46:55 +08:00
Zixuan Chen
2db272e857 chore(wasm): wasm build cfg 2022-12-09 10:46:47 +08:00
Zixuan Chen
0cd38270f9 bench(wasm): wasm bench
bench(wasm): add snapshot bench
2022-12-09 10:46:36 +08:00
Zixuan Chen
b1738e34a9 fix: to json result 2022-12-09 10:46:30 +08:00
Zixuan Chen
91e7b3ac87 feat: wasm encode decode basic 2022-12-09 10:46:30 +08:00
Zixuan Chen
f14905d562 feat: init encoding and build pipeline for wasm 2022-12-09 10:46:30 +08:00