WeIdentity icon indicating copy to clipboard operation
WeIdentity copied to clipboard

getWeIdDocument时延随块高增长变得十分缓慢

Open VictorLyl opened this issue 3 years ago • 1 comments

在getWeIdDocument函数中,底层有一行代码(com/webank/weid/service/impl/engine/fiscov2/WeIdServiceEngineV2.java,272行),这一行会随着块高不断增长时延不断提高,目前我的块高是20000多,这一行需要执行6秒。而且它会随着块高增加越来越慢。getWeIdDocument()在验证CredentiialPojo、Evidence都有引用,也使得这两个接口执行时间变得十分缓慢。 WechatIMG258

VictorLyl avatar Apr 24 '22 02:04 VictorLyl

块高不会影响WeId Doc的读取。 WeId Doc采用Event Link的方式来记录WeId Doc的数据,类似一个链表。如果多次修改WeId Doc则会导致该Link变长

CodingCattwo avatar Aug 02 '22 06:08 CodingCattwo