.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

RSA - What's faster?

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :.NET Framework

I have looked that the performance of RSA encryption in .Net is kinda slow. Other native (Win32) apps perform encryption a lot faster. I looked at mscorlib.dll (using Red Gates .Net Reflector) at the System.Security.Cryptography namespace and found that all the calculations (and even key generations) are done with managed code.

I thought it would be faster with unmanaged code, but I can't find libraries that do so.

My question: My app kinda needs performance with RSA encryption, should I:

  • use System.Security.Cryptography classes and deal with the fact, that lots of math operations are done, (managed code isn't really optimized)
  • link to a Win32 library that encrypts RSA

View Complete Post

More Related Resource Links

Combine, minify and compress JavaScript files to load ASP.NET pages faster

Websites are getting more interactive these days and most of this interactivity comes from JavaScript. People are using different JavaScript libraries and frameworks to make their websites more interactive and user friendly.

Utility Spotlight: 12 Steps To Faster Web Pages With Visual Round Trip Analyzer


Download Visual Round-trip Analyzer (VRTA) to uncover the root of your Web page loading problems and identify these 12 common ailments.

Jim Pierson

MSDN Magazine November 2008

C++: Write Faster Code with the Modern Language Features of Visual C++ 2005


The next version of Visual C++ has a new syntax that is both elegant and powerful. It has new optimization technology that has improved the speed of Microsoft. It has new compilation modes that ensure Common Language Infrastructure compliance and verifiability for the .NET Framework, and it has new models for interop. In this article Stephen Toub explains these and other improvements to Visual C++.

Stephen Toub

MSDN Magazine May 2004

Visual Studio .NET: Build Web Applications Faster and Easier Using Web Services and XML


Visual Studio .NET includes exciting features, some of which are enhancements to previous versions and some of which are brand new. A few of the most significant additions are the new Microsoft programming language called C#; a new, smarter integrated development environment; new object-oriented features in Visual Basic .NET; and development lifecycle tools. This article provides an overview of these features, as well as a look at Web Services, Web Forms, and new versions of ADO and ASP. It takes a first look at dozens of important new Visual Studio features that aid in the design, development, testing, and deployment of solutions built with Visual Basic, C++, Visual FoxPro, and C#.

Dave Mendlen

MSDN Magazine September 2000

How to create Asynchronous website-make the site work faster?

Hi,I developed an ASP.NET 3.5 website to read a few XML files generated by a third party software and convert them to a single Excel Book. The entire process takes more than 1 HOUR and even before completing the entire work, the system comes back with a message like - "Page cannot be displayed" and it fails. So, I am planning to make this website an Asynchronous site (I think if I make this site asynchronous it will work faster and will not stop execution before completing - new ideas are welcome.) I am new to this concept. Can anyone help me with some examples of how to convert a normal website to Asynchronous website? At present my site has 3 tiers and the reading of XML pages and writing them into Excel are happening in the Data Access Layer.Thanks

open faster huge list of combobox

Hi All. In detail form I have combobox with some thousand rows. I preloaded collection view of this list in parent form and make equal collection view of parent form to collection view detail form for combobox. But still need wait approximately 5 second when list will open. How to do that list of combobox will open faster. Thanks.

for ajax data insertion in page what is faster than innerHTML ?

I m doing an ajax work where web service will return data and on client side and I am creating html table with data. I am using var (to hold string of generated html code), do string concatinations to generate table, tr and td tags and put data in it. Than I put this html table with data into a div using innerHTML. Please note I am applying inline css in this dynamic html code. The issue I am facing is web service will return a huge amount of data. What I tested is even on local machine it took about 10-12 minutes to process (concatinating, creating tags putting data in table, applying css) 10000 rows. Stored procedure just take 3-4 seconds in returning data. Please guide me how this inbrowser processing time can be reduced ? I am doing it for speed in some wrong way ? Or is there some technique for it or some method faster than innerHTML and string concatinations ? thanks

application is faster while SSMS is open !?

Hi,  I have my VB.Net 2010 win form app running a job on a table (35.000 rows). I read from an MS-Access Database and, while iterantig on an OleDbDatareader,  I write  to the SQL Server Express 2008R2 using SqlDbCommand.ExecuteNonQuery. A progress bar on the GUI shows the current row. I've noticed that, while the app is running, if I launch the SSMS and I perform an operation (i.e. a simple select on a table) against the same db,  the application goes much more faster. As  I close the SSMS, the application slows down. All this is running on the same PC. In both, application and SSMS, the SQL Server Server Authentication is used (same user). Here is the connection string, stored into the app.config file:   <add name="DB" connectionString="Data Source=localhost\sqlExpress;Initial Catalog=myDb;Integrated Security=False;User ID=myUser;Password=myPass;pooling=False;Connection Timeout=1200;"/> Any idea ? thanks in advance. Francesco

which is faster in web development C# or VB.NET


Hi everyone,


I want to ask which language is faster when deploying the website to the internet. I mwan which is faster for the user to browse to website? C# or VB.NET?

By the way, which one ASP.NET did use?




According to the Adam Machanic's link http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/performance-isnull-vs-coalesce.aspx claims go both ways.

I could not confirm any difference. Performance measurement script follows:

 USE AdventureWorks2008;
DECLARE @StartTime datetime, @i int = 0
DECLARE @Duration TABLE (Duration int)
WHILE (@i < 100)
 SET @StartTime = GETDATE() 
 SELECT SalesOrderID, OrderDate, 
     Comment=COALESCE(Comment,'N/A') -- Cost: 0.620299
 FROM Sales.SalesOrderHeader
 INSERT @Duration

Which is faster and how can I use Fiddler to concur?


What is faster, querying 1000 records from SQL Server 2005 or Querying 1000 records an XML Document? 


Is it faster to use this query with json or is it faster to query in C#/VB.net?


Telling the program what you won't be doing to make the code run faster


I need to know if my thinking is on the right track about something, and if so, what keywords I might Google search to find out more about this.

Are there times we write code and the real advantage is that by telling the computer what we won't be doing, it saves time because the computer doesn't have to do something (maybe saving milliseconds, or even more?)

For example, every discussion about the modifier 'abstract' explains how it will prevent me from accidently trying to instantiate an object from the class.  Well, I'm in a situation where I'm pretty sure I won't make that mistake, but then I was thinking, well, maybe there's a better reason to use 'abstract' -- maybe it tells the computer 'you don't have to do certain stuff because this an abstract class' and it creates a significant time savings.

Am I on the right track?

The closest I've come to finding this was a mention that it's good to mark classes with 'sealed' whenever you know you won't be inheriting from them; this was in article about making code work faster.

Thank you for your help with this.

DROP vs TRUNCATE which is faster?

I work with datafiles containing more than 1 million records. Which would be faster DROP TABLE or TRUNCATE TABLE?

How to make sql query run faster??



Below is my query:

SELECT [FieldValue2] = case isdate(FieldValue2) When '1' then
    case isdate(FieldValue4) When '0' then
     dbo.GetCountagingDay(FieldValue2, getdate(), '') -1
FROM  test

Would SSIS be faster than OPENQUERY? (Over 100 Million rows)


I have a stored procedure taking over 2.5 hours (still running) getting a huge table from one sql server to another across a robust network. I don't know why it is taking so long or if there is a better way, like SSIS. I did try SSIS and it would just stop after bringing over about 2/3 of the records. I have tried this in several scenarios. The huge tables quit with over half the records transferred. Hence I tried this, but it hasn't finished yet. I need a good, reliable way to transfer huge tables. My T-SQL code is below. If SSIS is the way to go, please try to give me some tips on configuring it. Thank you.

CREATE PROCEDURE [dbo].[Populate_SoftwareInventory_Table] AS

IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[staging].[SoftwareInventory]') AND type in (N'U'))

Any idea why xp_cmdshell would be faster than Process.Start?


Inside one of my CLR stored procedures I need to call a console application and wait for the program to finish running. I was surprised to learn that if I run the program with xp_cmdshell it seems to complete in 20 seconds. If I call the same program with the same arguments using System.Diagnostics.Process.Start followed by WaitForExit it takes 80 (!) seconds to complete. It doesn't seem to matter if Process.StartInfo.UseShellExecute is true or false.

This particular server is still running SQL Server 2005 Standard. The console app that I am calling runs under the .Net framework 3.5 (I think) and does a little bit of file I/O and a lot of LINQ to SQL work. Yes the LINQ to SQL does access the same database, no I'm not likely to get that piece of design ugliness changed in the next couple of days.

No reason I can't just keep using xp_cmdshell, but anyone have any ideas why it would be so much faster?

which one is faster: background-image repeat itself or one big background-image



i'm asking this since there is so many tutorials that recommend "one big background-image"  but hey ! isn't that right when we use a background-image there will be one more request for that (url to picture)  and if we add repeat attribute it's going to repeat it(loaded from memory stream for every repeat) ? or will the browser send a request for every repeat ? 

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend