Commit graph

798 commits

Author SHA1 Message Date
Orion Henry
a728b8216b range -> map_range(), added list_range() values() works on both 2022-05-03 19:27:51 -04:00
Andrew Jeffery
0aab13a990 Set rust-version in cargo.tomls 2022-05-02 21:18:00 +01:00
Andrew Jeffery
3ec1127b50 Try 1.57.0 as msrv 2022-05-02 21:18:00 +01:00
Orion Henry
291557a019
Merge pull request #350 from jeffa5/opt-prop
Optimise prop query
2022-05-02 14:15:53 -04:00
Orion Henry
cc4b8399b1
Merge pull request #357 from automerge/faster-opset-iterator
Make the OpSet iterator faster
2022-05-02 14:15:06 -04:00
Orion Henry
bcdc8a2752 fmt 2022-05-02 13:32:59 -04:00
Orion Henry
0d3eb07f3f fix key/elemid bug and rename range to map_range 2022-05-02 13:30:59 -04:00
Alex Good
7f4460f200
Make the OpSet iterator faster
The opset iterator was using `OpTreeInternal::get(index)` to fetch each
successive element of the OpSet. This is pretty slow. We make this much
faster by implementing an iterator which is aware of the internal
structure of the OpTree.

This speeds up the save benchmark by about 10%.

Signed-off-by: Alex Good <alex@memoryandthought.me>
2022-05-01 00:07:39 +01:00
Orion Henry
9e6044c128 fixed panic in doc.values() - fixed concurrency bugs in range 2022-04-29 15:11:07 -04:00
Andrew Jeffery
6bf03e006c Add ability to skip in tree searches 2022-04-28 14:14:03 +01:00
Andrew Jeffery
8baacb281b Add save and load map benchmarks 2022-04-28 14:14:03 +01:00
Andrew Jeffery
7de0cff2c9 Rework benchmarks to be in a group 2022-04-28 14:14:03 +01:00
Andrew Jeffery
c38b49609f Remove clone from update
The cloning of the op was eating up a significant part of the increment
operation's time. This makes it zero-clone and just extracts the fields
needed.
2022-04-28 14:14:03 +01:00
Andrew Jeffery
db280c3d1d prop: Skip over nodes 2022-04-28 14:14:03 +01:00
Andrew Jeffery
7dfe311aae Store keys as well as elemids in visible index 2022-04-28 14:14:03 +01:00
Andrew Jeffery
bb4727ac34 Skip empty nodes in prop query 2022-04-28 14:14:03 +01:00
Andrew Jeffery
bdacaa1703 Use treequery rather than repeated gets 2022-04-28 14:14:03 +01:00
Andrew Jeffery
a388ffbf19 Add some benches 2022-04-28 14:14:03 +01:00
Andrew Jeffery
ca8a2a0762 Add cmake deps to nix flake 2022-04-28 14:13:36 +01:00
Orion Henry
be33f91346 Merge branch 'experiment' 2022-04-27 11:58:53 -04:00
Orion Henry
1f86a92ca1 typo 2022-04-25 12:47:13 -04:00
Andrew Jeffery
8e6306b546 Re-add caching and just clean docs dir from cache 2022-04-23 11:44:12 +01:00
Andrew Jeffery
37e29e4473 Remove docs cache
The docs aren't built with deps so it should be relatively quick to do
without a cache. The cache is also messing with keeping things from
previous versions (e.g. edit-trace).
2022-04-23 11:41:39 +01:00
Andrew Jeffery
adf8a5db12 Don't document edit-trace bin 2022-04-23 11:32:01 +01:00
Andrew Jeffery
ec446f4839 Add favicon 2022-04-23 11:31:58 +01:00
Andrew Jeffery
1e504de6ea
Merge pull request #351 from jeffa5/lints
Add generally useful lints and fixes
2022-04-23 11:21:32 +01:00
Andrew Jeffery
67da930a40 Add missing lints 2022-04-23 11:15:15 +01:00
Andrew Jeffery
9788cd881d Add debug impls 2022-04-23 11:14:07 +01:00
Andrew Jeffery
af951f324a Run cargo fix 2022-04-23 11:06:39 +01:00
Andrew Jeffery
48e397e82f Add lints 2022-04-23 11:05:43 +01:00
Andrew Jeffery
e7a8718434 Update badges 2022-04-23 10:47:21 +01:00
Andrew Jeffery
5b0ce54229 Add logo to docs 2022-04-23 10:46:03 +01:00
Andrew Jeffery
64c575fa85 Add image assets and sign to readme 2022-04-23 10:44:16 +01:00
Andrew Jeffery
a033ffa02b Update docs badge 2022-04-23 09:32:24 +01:00
Andrew Jeffery
afb1957d19 Add homepage badge 2022-04-23 09:31:28 +01:00
Andrew Jeffery
78ef6e3a2d Fix formatting 2022-04-23 09:27:01 +01:00
Andrew Jeffery
e3864e8fbd Add ci badge 2022-04-23 09:26:13 +01:00
Andrew Jeffery
23786bc746 Rename workflows 2022-04-23 09:26:05 +01:00
Andrew Jeffery
64363d7da2 Add docs badge 2022-04-23 09:22:25 +01:00
Andrew Jeffery
070608ddf2 Update CI to run on main branch 2022-04-22 17:51:01 +01:00
Andrew Jeffery
4f187859e7 Make web-sys optional and behind the wasm feature 2022-04-22 14:51:54 +01:00
Orion Henry
e41c5ae021 typescript bugfix 2022-04-20 22:05:05 -04:00
Orion Henry
e36f3c27c9
Merge pull request #347 from jeffa5/observer-counters
Add increment observation for observer
2022-04-20 20:35:18 -04:00
Orion Henry
1bee30c784
Merge branch 'main' into observer-counters 2022-04-20 20:35:07 -04:00
Orion Henry
9152c8366b
Merge pull request #343 from jkankiewicz/add_c_api
Add a C API to the "experiment" branch
2022-04-20 13:08:52 -04:00
Jason Kankiewicz
d099d553cc Apply patch from @orionz for the
"needless_lifetimes" clippy violation.
2022-04-20 10:21:56 -06:00
Orion Henry
1fc5e551bd
Merge pull request #346 from jeffa5/non-counter-increment
Prevent increment on non-counter
2022-04-20 11:48:52 -04:00
Andrew Jeffery
d667552a98 Add increment observation for observer 2022-04-20 14:44:04 +01:00
Andrew Jeffery
bfe7378968 Prevent increment on non-counter 2022-04-20 11:37:03 +01:00
Jason Kankiewicz
bc01267425 Fixed the clippy errors whose resolutions don't
cause compilation errors.
2022-04-20 01:54:57 -06:00