Commit graph

712 commits

Author SHA1 Message Date
Orion Henry
ffa49c8aca off by one 2021-06-19 13:29:59 -04:00
Orion Henry
ca74c33dcc finished basic seek_to_op + test + bugs 2021-06-18 19:20:52 -04:00
Orion Henry
0cd13e0c10 more mark2 2021-06-18 19:11:33 -04:00
Orion Henry
781aab84b8 missing mark2/mod.rs 2021-06-18 19:11:33 -04:00
Orion Henry
eb69472e25 mark2 2021-06-18 19:11:33 -04:00
Vedant Roy
ea35a7f6cf Rebase + clippy 2021-06-18 11:25:39 -04:00
Orion Henry
d9aee1bd2d throw a proper error on change decode 2021-06-18 11:15:22 -04:00
Vedant Roy
d810137903 Remove bad file 2021-06-18 11:14:42 -04:00
Vedant Roy
6c4623592b Satisfy clippy 2021-06-18 11:14:42 -04:00
Vedant Roy
f55c91c5d1 Tests pass 2021-06-18 11:14:42 -04:00
Vedant Roy
b304ba3ce3 Fix bug in tests? (Pretty sure it was a bug) 2021-06-18 11:14:42 -04:00
Vedant Roy
71306777d4 condense_insert_ops failing 2021-06-18 11:14:42 -04:00
Vedant Roy
e22a7bc446 Encode Vec<ScalarValue> into type system as ScalarValues 2021-06-18 11:14:21 -04:00
Vedant Roy
5dc37464af Remove F32 2021-06-18 11:13:46 -04:00
Vedant Roy
858392062f Ensure values have same type when constructing MultiElementInsert 2021-06-18 11:13:10 -04:00
Vedant Roy
023934334e Add comment explaining reason for custom serialization 2021-06-18 11:13:10 -04:00
Vedant Roy
c50db562ea Add custom serialization for DiffEdit 2021-06-18 11:13:10 -04:00
Vedant Roy
683ef69ef9 Add datatype for MultiSet 2021-06-18 11:13:10 -04:00
Orion Henry
4b4bcd587f fix error message 2021-06-18 11:13:10 -04:00
Vedant Roy
96de1a750a Remove unnecessary newline 2021-06-18 11:13:10 -04:00
Vedant Roy
da21627401 Properly update field count 2021-06-18 11:13:10 -04:00
Orion Henry
2dc38f9315 test the correct repo/commit 2021-06-18 11:13:10 -04:00
Orion Henry
ebe6aa551b strict numbers 2021-06-18 11:13:10 -04:00
Andrew Jeffery
ff8b8613d5
Flatten objtype (#175)
* Flatten object type

* Use separate construct functions

* Use separate gen_*_diff functions

* Remove maptype and seqtype from Diffs

* Preallocate ops in new_map_or_table

* More preallocations
2021-06-17 20:06:10 +01:00
Andrew Jeffery
98dbd6150e
Mutation tracker rollback (#165)
* Make set and delete operations return the old value

* Add rollback to MutableDocument

* Use rollback in optimistically_apply_change
2021-06-16 14:16:48 +01:00
Andrew Jeffery
0f0e9e827a
New value zero copy multivalue (#170)
* Remove copying when making a multivalue from a newvalue

* Optimise cursors in new value

* Make key be a value not reference

* Rename union to extend
2021-06-16 12:16:31 +01:00
Andrew Jeffery
79239cc6a4
Improve load performance when no cursors are present (#171)
* Add save and load to benchmarks

* Improve load performance when no cursors are found
2021-06-16 11:50:49 +01:00
Andrew Jeffery
8b3938c2e7
Rename UncompressedChange to Change (#173)
It wasn't really uncompressed as we have compressed and uncompressed
changes in the backend. It is just not encoded into the binary format.
The module separation (protocol vs backend) should help with the
distinction.
2021-06-16 11:50:26 +01:00
Andrew Jeffery
4821cdd766
Calculate pred for deletion from text before deleting (#174) 2021-06-16 11:49:58 +01:00
dependabot[bot]
599c619a4d
Bump glob-parent from 5.1.1 to 5.1.2 in /automerge-backend-wasm (#166)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-16 09:59:04 +01:00
Andrew Jeffery
f224940fdc
Fix Frontend debug struct name (#172) 2021-06-16 09:22:06 +01:00
Andrew Jeffery
71b59dea68
Set levels for instrument (#164) 2021-06-14 23:34:35 +01:00
Andrew Jeffery
14af0738dd
Remove MapType from Map and add Table variant (#168)
This simplifies the Value enum and hides the protocol internals from the
variants.
2021-06-14 21:26:02 +01:00
Andrew Jeffery
a6e955abfd
Rework statetree to be a tree (#156) 2021-06-14 11:08:14 +01:00
Orion Henry
ad3c75ff09 Remove unneeded wasm-opt 2021-06-12 15:01:38 -07:00
Orion Henry
647b8d2af2 fix deflate column decode order 2021-06-12 15:01:38 -07:00
Andrew Jeffery
a744637787
Add get_value to Value (#160) 2021-06-10 14:13:50 +01:00
Andrew Jeffery
098074dd1e
Add AsRef for Value (#162) 2021-06-09 16:51:56 +01:00
Andrew Jeffery
b8d282db61
Add more derived traits for Path (#163) 2021-06-09 11:06:54 +01:00
Andrew Jeffery
28459f868f
Remove value_at_path (#159)
This has the same functionality as get_value and we only need one.
2021-06-07 10:18:00 +01:00
Vedant Roy
1e9785cdc0 Everything uses MessagePack 2021-06-03 22:13:40 -07:00
Orion Henry
965a1c17b1 clippy 2021-06-03 22:13:40 -07:00
Vedant Roy
b4bc3f3ed9 Remove debug function 2021-06-03 22:13:40 -07:00
Vedant Roy
e035fb0b16 Use msgpack instead of JSON 2021-06-03 22:13:40 -07:00
Orion Henry
25a10a64d4 clippy 2021-05-29 17:11:17 -04:00
Orion Henry
d8a56d966e added binary search to doc decode for big speedup 2021-05-29 13:34:03 -07:00
Vedant Roy
ad604cc308 Satisfy clippy 2021-05-28 11:26:08 -07:00
Vedant Roy
5ace7d1cc0 Finish porting C tests 2021-05-28 11:26:08 -07:00
Vedant Roy
7fbf26bdec New backend finished (untested) 2021-05-28 11:26:08 -07:00
Vedant Roy
7469fe7f88 Everything done except syncstate 2021-05-28 11:26:08 -07:00