Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tiny ReceiveSyncMessage is slow #1042

@orionz

Description

@orionz

Current applyChanges function is optimized for large numbers of changes - needs an optimization for single op apply that does an index scan

Automerge 3

sync               fastest       │ slowest       │ median        │ mean          │ samples │ iters
├─ tiny_list_sync  17.22 ms      │ 63.29 ms      │ 24.43 ms      │ 24.15 ms      │ 100     │ 100
╰─ tiny_text_sync  21.54 ms      │ 65.48 ms      │ 21.72 ms      │ 22.17 ms      │ 100     │ 100

Automerge 2.6

Timer precision: 41 ns
sync               fastest       │ slowest       │ median        │ mean          │ samples │ iters
├─ tiny_list_sync  19.12 µs      │ 146.1 µs      │ 27.66 µs      │ 33.37 µs      │ 100     │ 100
╰─ tiny_text_sync  18.83 µs      │ 79.04 µs      │ 28.52 µs      │ 29.88 µs      │ 100     │ 100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions