• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 5223368825
88%

Build:
DEFAULT BRANCH: master
Ran 09 Jun 2023 03:24PM UTC
Jobs 1
Files 487
Run time 19s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Jun 2023 03:24PM UTC coverage: 85.864% (+0.01%) from 85.853%
5223368825

push

github

alyapunov
salad: make rope_erase erase more than a single element

We are going to use rope for representation of string field on tuple
update. It will help to handle multiple updates of the same string field
in the single update operation.

Currently rope erase operation can only remove single element at a time
which make erase complexity S*log2(N). Here S is number or deleted
elements and N is number of nodes in the rope. This patch changes rope
API to delete given number of elements at a time. Now complexity is
K*log2(N) when K is number of nodes where deleted elements resides.

Note that implementation is still suboptimal for the case when deleted
elements reside in more than a single node. First the implementation
searches every next node from the root of the tree. Second the balancing
rotations are performed on every node deletion.

As for the first issue it can be fixed merely by traversing to the next
node instead. Unfortunately the traversing code works with single level
of indirection while erasion works with two levels of indirection. We
can duplicate the code/use macros/copy to handle the difference but all
the possibilities are rather ugly so traversal on erasion is not done.
Anyway looks like sane update usage will erase from a single node every
time.

Part of #8226

NO_DOC=internal
NO_CHANGELOG=internal

63133 of 115680 branches covered (54.58%)

35 of 35 new or added lines in 2 files covered. (100.0%)

94768 of 110370 relevant lines covered (85.86%)

2862265.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5223368825.1 09 Jun 2023 03:24PM UTC 0
85.86
GitHub Action Run
Source Files on build 5223368825
Detailed source file information is not available for this build.
  • Back to Repo
  • ef5f0435 on github
  • Prev Build on master (#5223362129)
  • Next Build on master (#5223374636)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc