I am using g++ 4.9.2 on Solaris 10, and when I migrated from using g++ 2.95.3 I had to change hash_map to unordered_map. But, it seems that unordered_map has some performance bottlenecks compared to earlier hash_map. After use when I use rehash(0) on an unordered_map, it seems not to return my used memory in the free pool. How can I use my old hash_map using g++ 4.9.2?
memory footprints for hash_map seems less that unordered_map
73 Views Asked by Dr. Debasish Jana At
0
There are 0 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in HASHMAP
- Borrow mutable and immutable reference in the same block
- How entrySet() works internally in HashMap?
- Java HashMap, hashCode() equals() - how to be consistent with multiple keys?
- How to sort the string on the basis of the frequency which is a part of a string?
- How to get the index of the hash map array list in android?
- java - how to create custom hashtable iterator?
- How to convert a string to a key for hash table
- How to use hash tables when amount of slots is unknown?
- How to display the value of a HashMap key when user clicks autocom
- Iterating through a array of hashes in a hash that has multiple indexes
- combine two LinkedHashMap<>() to one Map
- How to traverse and update a Collection like HashMap in java dynamically?
- Load Dictionary Text File Into Java
- Why not use hash table with overflow area?
- Storing objects of different classes inside an ArrayList
Related Questions in UNORDERED-MAP
- Confusion with std::pairs initialization
- std:: pair in unordered map
- C++ unordered_map move beginner error
- C++ Unordered Map
- how to output elements in unordered_map with keys in ascending order?
- choice between map or unordered_map for keys consisting of calculated double values.
- unordered_map::find with key std::pair of pointers with custom hash crashes in VS2012
- emplace unordered_set in unordered_map
- Hash value for a std::unordered_map
- C++ Searching for the intersect of multiple arrays with different lengths in 0(n+m) complexity
- C++ How to implement an unordered_map in .cpp that is instantiated in a header?
- C++ unordered_map/map [] operator default initialization value
- Unordered_map with Data structures
- No instance of function template "std::make_pair" matches the argument list
- Efficient C++ API for an Open Addressing Hash Table
Related Questions in G++4.9
- How to fix this array used as initializer error?
- How to cleanly install gcc-4.9 and g++-4.9 to Ubuntu 18.04 Bionic Beaver?
- Unable to install g++ in ubuntu 20.04
- g++ option for showing all warnings except particular one
- Implicit cast from const string to bool
- Program terminated abnormally
- gcc acknowledging -Wfatal-errors parameter but not acting upon it
- C++: How do I know what exception in catch with ellipsis
- Linking yaml-cpp 0.5.x library with g++ 7.1.0
- no matching function for call to ‘regex_search(...)'
- Traits to detect if a class is compatible with std::ostream<<
- how do I show stack trace in Linux?
- string_char_traits<char> in C++11 for GNU/G++ 4.9 (earlier 2.95.3)
- What's the right way to work with a different C++ compiler in a CDT project?
- Bucket count in unordered_map
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?