On Thu, 10 May 2012, Kirk, Benjamin (JSC-EG311) wrote:

> I always cache a reference to the shape function vectors I need
> outside the element loop so in this case I can't imagine there is a
> difference between an inline and virtual function call.

You'd be surprised - in my degenerate "icpc figured out this benchmark
was a hokey trick" case, the non-virtual loop still ended up being
significantly faster.

But yeah, for a real problem your strategy would leave no difference
whatsoever.
---
Roy

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to