On Thu, Jun 21, 2012 at 8:28 AM, Chris Foster <[email protected]> wrote:
> On Thu, Jun 21, 2012 at 12:38 AM, Larry Gritz <[email protected]> wrote:
>> Chris, do you think this is also a severe problem with the
>> template-based method I advocated, which supports the cross-product of
>> all the basic data types?
>
> It's exactly the same problem: if you want a specialized version for
> each combination of types, that mandates 11^3 versions of the function.
> There's no getting around this basic fact I'm afraid.

Just to give some idea of how much of a problem this is, I just did a
test of the compile times:

make
touch src/libOpenImageIO/imagebufalgo.cpp
time make

gives 5.3s on my machine with the current master branch.  *However* with
the over branch, that blows out to a massive 66s!

~Chris
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to