It is currently Sat Aug 22, 2020 2:02 pm


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Container types
PostPosted: Wed May 11, 2011 7:46 am 

Joined: Thu Apr 28, 2011 9:07 pm
Posts: 7
Location: near Frankfurt/Main, Germany
In some posts here I read that some parts of PolyVox seemed to be slow. I'm sure that profiling will eventually find the culprits. :-)

This post is more to point you to BSD-licensed implementation of various C++ containers in an application that both needs to be fast and to need little memory: the LLVM compiler set.

Here's a list of the containers there and why they sometimes chose those containers over std:XXX ones: http://llvm.org/docs/ProgrammersManual. ... astructure

And here is the code: http://llvm.org/viewvc/llvm-project/llv ... /llvm/ADT/


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Container types
PostPosted: Wed May 11, 2011 8:33 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I don't think PolyVox is slow, there's just some parts we'd like to make even faster ;-)

But yes, data structures do play a part in this. In the case of the LargeVolume and the A* implementation the idea was to get it working first, and then polish the implementation details later. Both of these may benefit from either a different standard container (hash_map over map for example) or from custom containers. The MeshDecimator on the other hand needs a completely different approach (in progress here and here).

Anyway, that LLVM stuff looks intersting as I wasn't really aware of that project. Some interresting static analysis stuff too.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net