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

dedis / cothority / 13670
62%

Build:
DEFAULT BRANCH: master
Ran 08 May 2020 04:45PM UTC
Jobs 1
Files 141
Run time 21s
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

08 May 2020 04:22PM UTC coverage: 62.845% (+0.08%) from 62.768%
13670

push

travis-ci

web-flow
Add a caching system for the stateTries … (#2261)

* Add a caching system for the stateTries

The current stateTries have two bottlenecks:
- LoadConfigFromTrie - which is called everytime a LoadDarcFromTrie is called and
decodes the config protobuf structure every time anew
- LoadDarcFromTrie - which is called when evaluating signatures or authorizations

This PR adds a cache for both of these methods, so that calls within the
same block are cached. The test, which is a bit artificial, gives the
following improvements:
- LoadConfigFromTrie - 3x faster authorization check
- LoadDarcFromTrie - 4x faster authorization check

The latter is a bit artificial, because it measures looking up the same darcs
repeatedly, which in practice happens rarely.

The first test, however, is very relevant. In the 9cc3-chain, it is even worse,
as the config contains more nodes, which will make protobuf.Decode even
slower.

16138 of 25679 relevant lines covered (62.85%)

3266.36 hits per line

Jobs
ID Job ID Ran Files Coverage
10 13670.10 08 May 2020 04:45PM UTC 0
62.85
Travis Job 13670.10
Source Files on build 13670
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #13670
  • 38ff4b73 on github
  • Prev Build on master (#13668)
  • Next Build on master (#13677)
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