BT
x Your opinion matters! Please fill in the InfoQ Survey about your reading habits!

Performance Tuning on the .NET Compact Framework

by Jonathan Allen on Dec 21, 2006 |

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.

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

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT