Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Performance Hit of Debug='true' and No PDB Files

Reply
Thread Tools

Performance Hit of Debug='true' and No PDB Files

 
 
johdi
Guest
Posts: n/a
 
      07-08-2004
Hey there,

This is no doubt demonstrating how cruddy my understanding is - what
are the performance implications of having left the Debug=true value
in your web.config file but not building/deploying the PDB symbol
file?

Thanks for your help.
 
Reply With Quote
 
 
 
 
Natty Gur
Guest
Posts: n/a
 
      07-08-2004
Hi

Debugging mode can hit performance for some reasons :

1) Debugging mode change the timing objects will be available for GC (in
release mode objects that use once in method available for GC after the
call).

2) Debugging mode turn off JIT optimization and tell .NET runtime to
track how objects
used.

3) Debug mode causes ASP.NET to compile applications with extra
information that enables a debugger to closely monitor and control the
execution of an application. there is dedicate handler for debugging :
HttpDebugHandler, that get called when application instance create.

4) Code that you write using Conditional Compilation Statements or
System.Diagnostics.Conditional("DEBUG") attribute will run.


Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      07-08-2004
In addition to Natty's points, I believe you also lose the benefits of
batch compiling the ASPX files. This can lead to the runtime
generating an excessive number of assemblies.

--
Scott
http://www.OdeToCode.com

On Thu, 08 Jul 2004 05:22:57 -0700, Natty Gur <(E-Mail Removed)>
wrote:

>Hi
>
>Debugging mode can hit performance for some reasons :
>
>1) Debugging mode change the timing objects will be available for GC (in
>release mode objects that use once in method available for GC after the
>call).
>
>2) Debugging mode turn off JIT optimization and tell .NET runtime to
>track how objects
>used.
>
>3) Debug mode causes ASP.NET to compile applications with extra
>information that enables a debugger to closely monitor and control the
>execution of an application. there is dedicate handler for debugging :
>HttpDebugHandler, that get called when application instance create.
>
>4) Code that you write using Conditional Compilation Statements or
>System.Diagnostics.Conditional("DEBUG") attribute will run.
>
>
>Natty Gur[MVP]
>
>blog : http://weblogs.asp.net/ngur
>Mobile: +972-(0)52-8888377
>
>
>*** Sent via Devdex http://www.devdex.com ***
>Don't just participate in USENET...get rewarded for it!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Palm::PDB: How to compose a PDB? Josef Moellers Perl Misc 0 08-16-2007 02:29 PM
Can't hit the site by name but I can hit by IP CK ASP .Net 9 10-19-2006 08:01 PM
Why can I still hit the break point without the pdb file =?Utf-8?B?SmF6eg==?= ASP .Net 1 06-13-2004 02:46 PM
Re: Performance considerations of compiling in debug mode, then NOT deploying the PDB file Steve C. Orr, MCSD ASP .Net 3 08-21-2003 01:29 PM
Shared vs static link performance hit --and Windows? Christos TZOTZIOY Georgiou Python 7 07-09-2003 10:10 PM



Advertisments