BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Performance Tuning on the .NET Compact Framework

| by Jonathan Allen Follow 6 Followers on Dec 21, 2006. Estimated reading time: less than one minute |

Applications written for the .NET Compact Framework (NetCF) typically run on machines with far less power that your typical laptop. Since performance is far more of an issue on these platforms, the .NET Compact Framework Team has added a new performance logger to the NetCF 3.5.

The new logger monitors the garbage collector for finalizer calls. When unmanaged resources are not disposed of properly calling the Dispose method on an object, the garbage collector has to take care of it via a finalizer. This prolongs the life of the object by at least one more GC cycle, impacting memory and other scarce resources. For some resources like database connections, it can even cause the application to fail at random.

By examining the finalize logs, developers can determine if objects are not being properly disposed of. But the log isn’t perfect; all it can tell you is what type of object was being finalized. The developers still have to search the code by hand to locate the resource leak.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT