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

dedis / cothority / 13670 / 10
62%
master: 62%

Build:
DEFAULT BRANCH: master
Ran 08 May 2020 04:45PM UTC
Files 141
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

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

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

Source Files on job 13670.10
  • Tree
  • List 0
  • Changed 36
  • Source Changed 10
  • Coverage Changed 33
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 11220
  • Travis Job 13670.10
  • 38ff4b73 on github
  • Prev Job for on master (#13668.10)
  • Next Job for on master (#13677.10)
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