This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Iterators


Iterators

Postby Squirrel » Jul 2, 2006 @ 7:19pm

Squirrel
pm Member
 
Posts: 26
Joined: Jun 2, 2006 @ 3:56pm
Location: Rus


Postby joshbu [MSFT] » Jul 5, 2006 @ 8:50pm

Functional concern:

Does the class Object define operator=?

If not, you're getting a compiler generated operator, which is a simple member copy. This can be bad: for example, if one of the members is a HANDLE to a Win32 object that is destroyed in the Object destructor.

Performance concern:

Do you have profiling data that suggests that the call into Object::method is a hot spot?

In most cases, Smartphone/PocketPC apps are not CPU bound: they are memory bandwidth bound. So things like cache coherentcy can matter much, much more than trying to save cycles on method calls.
joshbu AT microsoft dot-you-know-where
Windows CE Software Design Engineer

“This posting is provided “AS IS” with no warranties, and confers no rights.”
joshbu [MSFT]
pm Member
 
Posts: 60
Joined: Apr 10, 2004 @ 12:28am
Location: Redmond, WA


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron