Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / November 2006

Tip: Looking for answers? Try searching our database.

Interop object creation performance

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Smith - 26 Oct 2006 14:21 GMT
Hello!

I did some performance testing with ADODB interop object creation, and
noticed that interop objects are created much faster on windows applications
than ASP.NET.

I tested it with this function on both platforms:

 Private Function CreateObjects() As TimeSpan

   Dim rsData As ADODB.Recordset
   Dim lPos As Long
   Dim dtStart As DateTime = Now

   For lPos = 1 To 5000
     rsData = New ADODB.Recordset
   Next

   Return Now - dtStart

 End Function

Windows application gives about 1.8 seconds
ASP.NET (on IIS 5.1) application gives about 15.6 seconds

I'm using .NET Framework v2.0.50727

Why is ASP.NET so much slower, and is there anything to do about it?
Mattias Sjögren - 29 Oct 2006 21:31 GMT
John,

Did you set AspCompat=true in your ASP.NET page?

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

John Smith - 30 Oct 2006 15:13 GMT
Hi!

That switch doesn't seem to have any affect on the performance.

> John,
>
> Did you set AspCompat=true in your ASP.NET page?
>
> Mattias
Smith John - 15 Nov 2006 13:56 GMT
> Hi!
>
[quoted text clipped - 5 lines]
> >
> > Mattias
Smith John - 15 Nov 2006 14:03 GMT
Hi again.

Does anyone have any idea is this around 5ms object creation time normal in
asp.net enviroment? It sounds ridiculously slow. Please only one answer is
needed. Is this normal? Anyone Microsoft.

> Hi!
>
[quoted text clipped - 5 lines]
> >
> > Mattias

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.