[MOAB-dev] Discussion on return type of MOAB routines

Jed Brown jed at jedbrown.org
Wed Jan 22 13:30:57 CST 2014


"Tim Tautges (ANL)" <tautges at mcs.anl.gov> writes:

> On 01/22/2014 01:21 PM, Jed Brown wrote:
>> "Tim Tautges (ANL)" <tautges at mcs.anl.gov> writes:
>>> This depends on how often it happens.  In all cases, IMO, a success condition should result in nothing more than a
>>> POD-sized object (and I should add, no virtual table).
>>
>> vtables are just pointers like any other in terms of performance.
>>
>
> Sure but we still don't want that extra expense.

Sure, just saying that two pointers costs the same as a pointer and an
int/enum.  So if you want to replace the enum (non-extensible) with a
derived class (extensible), it will not have a performance impact.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/moab-dev/attachments/20140122/ac47ca31/attachment.pgp>


More information about the moab-dev mailing list