[Insight-developers] fill
M.Staring at lumc.nl
M.Staring at lumc.nl
Thu Apr 11 03:21:38 EDT 2013
Hi,
I checked that I compiled in release mode, so that was correct. On Ubuntu clock() apparently returns in a different unit, indeed.
Regards, Marius
From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
Sent: woensdag 10 april 2013 17:33
To: Staring, M. (LKEB)
Cc: Insight Developers
Subject: Re: [Insight-developers] fill
Or maybe Ubuntu is milliseconds and windows is seconds?
On Wed, Apr 10, 2013 at 11:28 AM, Bill Lorensen <bill.lorensen at gmail.com<mailto:bill.lorensen at gmail.com>> wrote:
The Ubuntu timings are much longer than windows. Was that expected?
On Wed, Apr 10, 2013 at 10:42 AM, <M.Staring at lumc.nl<mailto:M.Staring at lumc.nl>> wrote:
-----Original Message-----
From: Staring, M. (LKEB)
Sent: woensdag 10 april 2013 16:28
To: Insight Developers (insight-developers at itk.org<mailto: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<mailto:blowekamp at mail.nih.gov>
Cc: matt.mccormick at kitware.com<mailto: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-----
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-developers
--
Unpaid intern in BillsBasement at noware dot com
--
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20130411/f22c89ea/attachment.htm>
More information about the Insight-developers
mailing list