[Insight-developers] fill

M.Staring at lumc.nl M.Staring at lumc.nl
Wed Apr 10 10:42:42 EDT 2013



-----Original Message-----
From: Staring, M. (LKEB) 
Sent: woensdag 10 april 2013 16:28
To: Insight Developers (insight-developers at itk.org)
Subject: FW: fill

Forgot to include the maliing list

-----Original Message-----
From: Staring, M. (LKEB)
Sent: woensdag 10 april 2013 16:24
To: 'Williams, Norman K'; blowekamp at mail.nih.gov
Cc: matt.mccormick at kitware.com
Subject: RE: fill

Hi,

Attached you can find some timings for different POD types, I tested for short, int, float and double. std::fill_n is always faster, but less so for longer types.

I simply modified itk::Array::Fill to use std::fill_n instead of referring to the vnl_vector::fill which uses a simple loop over the data. Not sure if this is the way to go, but my experimental looks green:

	http://open.cdash.org/buildSummary.php?buildid=2871413

The patch I just submitted to gerrit:

	http://review.source.kitware.com/#/c/10801/

Curious to your comments,

Regards, Marius

-----Original Message-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fill_n.xls
Type: application/vnd.ms-excel
Size: 34304 bytes
Desc: fill_n.xls
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20130410/cc8cb939/attachment.xls>


More information about the Insight-developers mailing list