trustbloc / edv

Encrypted data vault implementation in Golang - https://identity.foundation/edv-spec/
Apache License 2.0
16 stars 17 forks source link

perf: improve performance of ZCAP capability creation #185

Closed aholovko closed 3 years ago

aholovko commented 3 years ago

This PR adds support for context caching for LD document loader. It sheds another 1.5-2 sec off the onboarding routine.

Part of https://github.com/trustbloc/kms/issues/146

Signed-off-by: Andriy Holovko andriy.holovko@gmail.com

codecov[bot] commented 3 years ago

Codecov Report

Merging #185 (aac4a07) into main (87d85c1) will decrease coverage by 0.04%. The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #185      +/-   ##
==========================================
- Coverage   85.61%   85.57%   -0.05%     
==========================================
  Files          14       14              
  Lines        1682     1691       +9     
==========================================
+ Hits         1440     1447       +7     
- Misses        152      153       +1     
- Partials       90       91       +1     
Impacted Files Coverage Δ
pkg/auth/zcapld/service.go 80.86% <83.33%> (-0.27%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 87d85c1...aac4a07. Read the comment docs.