Zixuan Chen
d942e3d7a2
Feat: Peritext-like rich text support ( #123 )
...
* feat: richtext wip
* feat: add insert to style range map wip
* feat: richtext state
* fix: fix style state inserting and style map
* fix: tiny vec merge err
* fix: comment err
* refactor: use new generic-btree & refine impl
* feat: fugue tracker
* feat: tracker
* feat: tracker
* fix: fix a few err in impl
* feat: init richtext content state
* feat: refactor arena
* feat: extract anchor_type info out of style flag
* refactor: state apply op more efficiently
we can now reuse the repr in state and op
* fix: new clippy errors
* refactor: use state chunk as delta item
* refactor: use two op to insert style start and style end
* feat: diff calc
* feat: handler
* fix: tracker checkout err
* fix: pass basic richtext handler tests
* fix: pass handler basic marking tests
* fix: pass all peritext criteria
* feat: snapshot encoding for richtext init
* refactor: replace Text with Richtext
* refacotr: rm text code
* fix: richtext checkout err
* refactor: diff of text and map
* refactor: del span
* refactor: event
* fix: fuzz err
* fix: pass all tests
* fix: fuzz err
* fix: list child cache err
* chore: rm debug code
* fix: encode enhanced err
* fix: encode enchanced
* fix: fix several richtext issue
* fix: richtext anchor err
* chore: rm debug code
* fix: richtext fuzz err
* feat: speedup text snapshot decode
* perf: optimize snapshot encoding
* perf: speed up decode & insert
* fix: fugue span merge err
* perf: speedup delete & id cursor map
* fix: fugue merge err
* chore: update utils
* perf: speedup text insert / del
* fix: cursor cache
* perf: reduce conversion by introducing InsertText
* perf: speed up by refined cursor cache
* chore: update gbtree dep
* refactor(wasm): use quill delta format
* chore: fix warnings
2023-10-29 14:02:13 +08:00
leeeon233
caaaa666ae
chore: add pending bench
2023-09-20 09:24:46 +08:00
Zixuan Chen
1ce5330828
bench: use worst case to bench in encode
2023-09-07 21:42:29 +08:00
Zixuan Chen
be63db444e
Merge branch 'main' into feat-encode-enhance
2023-09-05 17:08:41 +08:00
Zixuan Chen
9be8cad562
test: add more many_actors tests
2023-09-02 23:23:52 +08:00
Zixuan Chen
c105ff2220
Feat: checkout to target version & use unicode index by default ( #98 )
...
* feat: checkout to frontiers
* feat: record timestamp
* fix: use unicode len by default for text
now "你好" has length of 2 instead of 6
* chore: rm dbg!
2023-08-04 10:45:23 +08:00
Zixuan Chen
1e736df133
Refactor: rm legacy code ( #97 )
...
* refactor: rm legacy code
* chore: rm dead code
* refactor: mv refactored files outside
* refactor: rename files & methods
* chore: rm unused deps
* fix: compact bytes err
* chore: fix ci
2023-07-31 11:49:55 +08:00
Zixuan Chen
15be521777
feat: event & wasm
2023-07-29 02:03:51 +08:00
Zixuan Chen
f8d58ec379
refactor: use utf16 index in wasm mode
2023-07-28 13:38:52 +08:00
Zixuan Chen
470d23a198
feat: subscribe for container events
2023-07-26 18:56:03 +08:00
Zixuan Chen
6abeba6849
refactor: rename *App to *Doc
2023-07-19 21:21:37 +08:00
Zixuan Chen
d03617ca26
feat: add bench
2023-07-17 23:18:18 +08:00
Zixuan Chen
20cf17e00b
bench: refactored text
2023-07-17 21:24:02 +08:00
Zixuan Chen
16ec59ddee
fix: fix a few recursive_refactored bug
2023-07-17 19:09:18 +08:00
Zixuan Chen
8ebd41fa3d
feat: connect diff calculator
2023-07-12 00:29:23 +08:00
Zixuan Chen
23a212e5f6
chore: fix warnings and rm some dead code
2023-07-10 18:35:31 +08:00
Zixuan Chen
f0f82fb581
refactor: seal change exp impl
2023-07-05 14:43:58 +08:00
Zixuan Chen
82b5f8dc90
Perf: speed up utf16 and wasm ( #90 )
...
* perf: remove unused transact field
* perf: micro optimization
* bench: fix bench
* bench: add utf16 bench
* chore: refine diagnose
* perf: speedup utf16 lookup
* perf: use better utf16 len counter
* refactor: use js to cast Loro/Transaction
* refactor: map and list use __loro and __txn
* test: configure ci vitest
* chore: ci
2023-04-03 09:29:25 +08:00
leeeon233
117155cc54
perf: remove compress
2023-03-20 13:55:20 +08:00
leeeon233
e6002d7076
bench: observe txn
2023-03-15 20:43:26 +08:00
leeeon233
87cc3be884
bench: add txn
2023-03-10 18:21:05 +08:00
leeeon233
0ff122b68e
feat: transaction decode
2023-03-10 14:22:38 +08:00
leeeon233
f6ad5460cb
Merge branch 'perf-encode-size' into feat-transaction
2023-03-09 10:45:29 +08:00
leeeon233
73598c49ad
fix: remove checker to container inner
2023-03-07 21:56:16 +08:00
leeeon233
3a0b8d9d58
fix: remove delta clone
2023-03-06 12:43:52 +08:00
leeeon233
4652d839ec
feat: map transaction
2023-03-02 17:54:57 +08:00
leeeon233
46e2c5a960
feat: text transaction
2023-03-02 10:37:50 +08:00
leeeon233
3c9818ef82
feat: impl list map text transaction
2023-02-27 20:55:52 +08:00
Zixuan Chen
dbb19bc2e6
bench: fix decode bench
2023-02-22 16:54:13 +08:00
leeeon233
037d17cd08
bench: sync 2000 times
2023-02-20 20:02:38 +08:00
leeeon233
379c3201f5
bench: encode without compress
2023-02-20 19:16:02 +08:00
leeeon233
7c8aa72969
fix: opt offset [lamport]
2023-02-18 18:03:05 +08:00
Zixuan Chen
18d32384a5
refactor: move loro-core to loro-internal
2023-01-16 20:08:43 +08:00