[Insight-developers] itkMetaDataObject::New
Blezek, Daniel J (GE, Research)
blezek at crd.ge.com
Tue Apr 4 13:43:48 EDT 2006
Good, anything you can do to make GDCM / DICOM reading in ITK faster is a Good Thing(tm).
-dan
-----Original Message-----
From: insight-developers-bounces+blezek=crd.ge.com at itk.org [mailto:insight-developers-bounces+blezek=crd.ge.com at itk.org]On Behalf Of Jim Miller
Sent: Tuesday, April 04, 2006 12:30 PM
To: insight-developers at itk.org
Subject: [Insight-developers] itkMetaDataObject::New
Mathieu and I are tracking down performance issues reading DICOM. In my test case of reading 50 images, my test program spends about 25% of its execution time populating the MetaDataDictionary with DICOM tags. The MetaDataDictionary stores MetaDataObjects which are subclasses of LightObject. MetaDataObject.h has a standard itkNewMacro() call which requires searching the list of factories for each instantiation of a MetaDataObject.
When I change the MetaDataObject to use an itkFactorylessNewMacro(), I reclaim approximately 20% of the overall process time.
Does anyone have a use case that requires the items stored in a MetaDataDictionary to use a factor to instantiate a MetaDataObject?
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20060404/a64ca2ac/attachment.html
More information about the Insight-developers
mailing list