[OSRM-talk] stxxl::vector<std::string>

Robert Scott lists at humanleg.org.uk
Fri Mar 20 18:55:27 UTC 2015


Dennis,

How are you doing this?

https://github.com/Project-OSRM/osrm-backend/blob/v4.5.0/extractor/extraction_containers.hpp#L50

All sources I can find say that stxxl doesn't support non-POD datatypes:

http://sourceforge.net/p/stxxl/discussion/446474/thread/7b904a22/
http://sourceforge.net/p/stxxl/discussion/446474/thread/b528b08e/

When I try and do something similar (stxxl::map<unsigned,std::string,CmpUnsignedLess>), I get garbage out and double-free crashes on destruction. I would love to know what magic you are using to get this to work.

Or are you just usually doing the extraction on systems with such huge amounts of memory it never actually has to spill to disk?


robert.



More information about the OSRM-talk mailing list