BT

InfoQ Homepage News Performance Tuning on the .NET Compact Framework

Performance Tuning on the .NET Compact Framework

Bookmarks

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
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.

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

Community comments

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

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

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.