簡體   English   中英

.NET ContentInfo處理時間太長

[英].NET ContentInfo taking too long to process

以下使用ContentInfo(System.Security.Cryptography.Pkcs.ContentInfo)的代碼確實需要很長時間才能執行。

我有什么可以加快速度的嗎?

byte[] fileContents = File.ReadAllBytes(fileName );
var contentInfo = new ContentInfo(fileContents);
var signedCms = new SignedCms(contentInfo);
signedCms.Decode(fileContents);
signedCms.RemoveSignature(0);

在我的情況下-我發現了問題,在VS調試器之外的調試會話期間,操作花費的時間太長,操作以正常的可接受速度進行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM