Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Proposal on *Index: access via hash value
Re: Proposal on *Index: access via hash value [message #20700 is a reply to message #20691] Wed, 01 April 2009 05:26 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14257
Registered: November 2005
Ultimate Member
Well, I think that VectorMap is not that bad in this situation. Also, quite often it is possible to reorganize the code and remove 'id' from T.

As an option, you can consider using HashBase. It is not really documented (?yet), but it implements just hashing without values.

Also worth noting is that hashing itself costs about 20 bytes per element. In this light, wasting 16 bytes to store String key separately is not really critical.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with Core/Mt.h Mutex and RWMutex
Next Topic: .ini file
Goto Forum:
  


Current Time: Sat May 10 02:51:16 CEST 2025

Total time taken to generate the page: 0.02563 seconds