[Openmcl-devel] Class instance vs struct creation question

j-anthony at comcast.net j-anthony at comcast.net
Tue May 10 21:03:44 UTC 2011


Hi All,

I thought I sent this before, but if so it fell off the edge of the
universe.

Doing some trials, I notice that creating an instance of a class takes
around 10x more time than creating a "comparable" structure.  By
"comparable" I mean 'has the same user level slot definitions'.  This is
mostly an issue of curiosity as the difference only starts to be
"noticeable" when creating 100s of thousands and in any practical context
the difference would surely be in the noise of the domain level processing
required in either case.  Even so, it (at least naively) seems like rather
a large difference.  Simply for the sake of edification, would someone
(Gary, Mathew, ...) care to comment?

Thanks!

/Jon


--------------------------------------------------------------------
mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint





More information about the Openmcl-devel mailing list