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

tarantool / tarantool / 7556708549
88%

Build:
DEFAULT BRANCH: master
Ran 17 Jan 2024 02:43PM UTC
Jobs 1
Files 511
Run time 56s
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

17 Jan 2024 01:51PM UTC coverage: 86.937% (+0.02%) from 86.919%
7556708549

push

github

locker
space: optimize lookup by id

In contrast to space_cache_find(), space_by_id() doesn't cache the last
looked up space to speed up following lookups. This is confusing,
because one would expect the only difference between space_cache_find()
and space_by_id() functions to be that the former sets diag while the
latter doesn't. Let's move the prev_space cache to space_by_id() to fix
this issue.

To achieve that we need to make space_by_id() inline, which is tricky
because it's called via FFI. We work around that by defining a macro
space_by_id() which expands to space_by_id_fast() while still keeping
the space_by_id() symbol for FFI.

Last but not least, we make the last cached space global (currently it's
instantiated once per each space_cache_find() call site). This is a good
thing because we often call space_by_id() a few times while processing
the same DML request (e.g. in memtx mvcc).

NO_DOC=no user-visible behavior changes
NO_TEST=no user-visible behavior changes
NO_CHANGELOG=no user-visible behavior changes

66639 of 118976 branches covered (0.0%)

98904 of 113765 relevant lines covered (86.94%)

2652770.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7556708549.1 17 Jan 2024 02:44PM UTC 0
86.94
GitHub Action Run
Source Files on build 7556708549
Detailed source file information is not available for this build.
  • Back to Repo
  • e06b866a on github
  • Prev Build on master (#7556576456)
  • Next Build on master (#7568229484)
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