[Insight-developers] memcpy usage in itk and vtk

Bill Lorensen bill.lorensen at gmail.com
Wed Apr 10 10:07:58 EDT 2013


Brad,

I agree. I looked at a bunch of web discussions regarding the pros and
cons. Your comment seems to be the consensus.

Bill


On Wed, Apr 10, 2013 at 10:04 AM, Bradley Lowekamp
<blowekamp at mail.nih.gov>wrote:

> Bill,
>
> I think that copy is required for generic programming like much of ITK.
>
> But when you have a known type, I don't see any reason to look down on
> memcpy.
>
> Brad
>
> On Apr 9, 2013, at 5:02 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>
> > Kent says:
> > "There are (before this patch) 88 calls to memcpy
> > in the ITK source code."
> >
> > In VTK, there are 2076 uses of memcpy in 452 classes.. Perhaps the older
> sibling can learn from the younger.
> >
> > There are 34 uses of std::copy in vtk.
> >
> > Bill
> >
> > --
> > Unpaid intern in BillsBasement at noware dot com
> > _______________________________________________
> > Powered by 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20130410/705e23d6/attachment.htm>


More information about the Insight-developers mailing list