On Thu, 9 Dec 2010, Roy Stogner wrote:

> On Thu, 9 Dec 2010, Michael Povolotskyi wrote:
>
>>    Is there any  way to preallocate memory for points and elements?
>
> No, the underlying container is a vector-like interface around
> std::map (which has no preallocation capability).  It might be worth
> eventually writing a custom container for better performance; I don't
> think even ropes have a standard STL implementation.

Fun coincidence: an hour after writing this sentence I was in a
discussion with a developer of a different numerical library whose
policy is that std::map in large containers is such a performance
disaster that he avoids using it anywhere at all.
---
Roy

------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to