lasp-lang / types

Prototype implementation of Conflict-free Replicated Data Types (CRDTs) in Erlang.
https://lasp-lang.org
Apache License 2.0
140 stars 13 forks source link

Reduce compute time #83

Closed vitorenesduarte closed 6 years ago

vitorenesduarte commented 7 years ago

Before / After (state_awset):

- delta:
  > min: 12 / 11
  > max: 78437 / 44049
  > avg: 10167 / 3963
- is_bottom:
  > min: 2 / 2
  > max: 35 / 18
  > avg: 2.7 / 3
- is_strict_inflation:
  > min: 11 / 9
  > max: 26203 / 1458
  > avg: 9492 / 189
- merge:
  > min: 9 / 7
  > max: 35771 / 1247
  > avg: 9485 / 179
- mutate:
  > min: 20 / 15
  > max: 17462 / 1467
  > avg: 4118 / 119
- new:
  > min: 3 / 3
  > max: 2700 / 2865
  > avg: 466 / 478
- query:
  > min: 5 / 6
  > max: 905 / 987
  > avg: 179 / 183

Time reduced to:

cmeiklejohn commented 6 years ago

@vitorenesduarte Is this good to merge?

vitorenesduarte commented 6 years ago

@cmeiklejohn Yes.