Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EncryptedData Performance Issue

Status
Not open for further replies.

mbiro

Programmer
Nov 20, 2001
304
Dim context As SoapContext = EnrollWS.RequestSoapContext

context.Security.Timestamp.TtlInSeconds = 60

context.Security.Tokens.Add(signatureToken)

context.Security.Tokens.Add(encryptionToken)

context.Security.Elements.Add(New EncryptedData(encryptionToken))


The last line is causing a performance issue. If I comment that line out, the page renders in less than one second. With the line, the page takes over 15 seconds. Any ideas?
 
Encryption uses a lot of CPU. How powerful are your machines? And do you have hardware-accelerated encryption (add-in PCI board)?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Thanks for the reply. I am developing on my desktop with Visual Studio. When deloyed, the solution will be on an Enterprise class Windows 2003 server. I am seeing the dramatic performance issue on my desktop.
 
So, how is the CPU on your machine compared to production? Any aggressive anti-virus running? Memory usage? Running in the IDE vs. as a standalong app?

All these things can affect performance. Unless you have a way to test in an identical environment, and have instrumented your code with calls to PerformanceCounter objects (shows up in PerfMon), both of us are only guessing as to the cause.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top