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

nats-io / nats-server / 7599022321
83%

Build:
DEFAULT BRANCH: main
Ran 21 Jan 2024 05:17AM UTC
Jobs 1
Files 53
Run time 6s
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

20 Jan 2024 06:59PM UTC coverage: 85.049% (+0.03%) from 85.024%
7599022321

push

github

web-flow
[IMPROVED] NumPending calculations and subject index memory in filestore (#4960)

Swapped out psim as a go hashmap for our stree implementation.

Stree is an adaptive radix tree implementation used for storing and
retrieving literal subjects. It also allows quick matching to wildcard
subjects, which is it's major design goal along with using less memory
in high subject cardinality situations.

This will be used in the filestore implementation to replace the PSIM
hash map which was fast at insert and lookup but suffered when trying to
filter based on wildcard subjects.

This is used specifically in calculations on NumPending with a wildcard,
and given we push folks to use larger muxed streams with down filtered
consumers and/or mirrors this was becoming a performance issue.

Signed-off-by: Derek Collison <derek@nats.io>

---------

Signed-off-by: Derek Collison <derek@nats.io>
Signed-off-by: Neil Twigg <neil@nats.io>
Co-authored-by: Neil Twigg <neil@nats.io>

62584 of 73586 relevant lines covered (85.05%)

184247.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7599022321.1 21 Jan 2024 05:17AM UTC 0
85.05
GitHub Action Run
Source Files on build 7599022321
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #7599022321
  • d9235abb on github
  • Prev Build on main (#7592200306)
  • Next Build on main (#7606564069)
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