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

tarantool / tarantool / 20061901270
88%
master: 88%

Build:
Build:
LAST BUILD BRANCH: ninarodicova/test5
DEFAULT BRANCH: master
Ran 09 Dec 2025 11:43AM UTC
Jobs 1
Files 519
Run time 2min
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 Dec 2025 11:28AM UTC coverage: 87.568% (-0.02%) from 87.584%
20061901270

push

github

sergepetrenko
tuple: remove useless loop from `tuple_dictionary_delete_hash`

Inside `tuple_dictionary_delete_hash`, there was a loop that, on each
iteration, searched for the first non-deleted element using `mh_first`,
which has a complexity of `O(n)`, and deleted it using `mh_strnu32_del`.
After the loop finished executing, `tuple_dictionary_delete_hash`
immediately called `mh_strnu32_delete`.
All elements are stored in the hashmap inplace, so `del` doesn't invoke
any memory deallocation functions. `del` also doesn't call destructors for
the elements; it merely sets a specific bit in the bitmap to 0.
Immediately after the loop, `mh_strnu32_delete(hash)` will delete the
hashmap `hash` along with the array `hash->p` containing all elements
inplace.

This commit simply removes this useless loop, which was causing
significant performance issues when closing a read view.

Closes tarantool/tarantool-ee#1043, #12115

NO_DOC=performance improvement
NO_TEST=performance improvement

(cherry picked from commit 4b720077b)

68787 of 116384 branches covered (59.1%)

103519 of 118215 relevant lines covered (87.57%)

1628412.63 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
90.5
-0.07% src/box/applier.cc
1
87.84
-1.35% src/box/lua/ctl.c
1
84.16
-0.02% src/box/xlog.c
1
87.5
-1.79% src/box/xlog.h
1
96.1
-0.05% src/lib/salad/bps_tree.h
2
92.34
-0.05% src/box/vinyl.c
2
95.03
-0.02% src/box/xrow_update_field.c
2
96.15
-3.85% src/lib/core/iostream.h
3
97.98
-0.21% src/box/memtx_tx.c
3
87.23
-0.2% src/box/vy_run.c
7
94.46
-1.44% src/box/vy_read_iterator.c
19
90.74
-0.56% src/box/box.cc
Jobs
ID Job ID Ran Files Coverage
1 20061901270.1 09 Dec 2025 11:43AM UTC 519
87.57
GitHub Action Run
Source Files on build 20061901270
  • Tree
  • List 519
  • Changed 21
  • Source Changed 0
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • dc3eae51 on github
  • Prev Build on release/3.3 (#20058740219)
  • Next Build on release/3.3 (#20092289286)
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