Click here to Skip to main content
15,910,797 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: ATL7 Auto-Generated IDL - Argh! Pin
Simon Steele24-Oct-02 23:55
Simon Steele24-Oct-02 23:55 
QuestionWTL ? Pin
puzzolino23-Oct-02 21:44
puzzolino23-Oct-02 21:44 
AnswerRe: WTL ? Pin
Steve S24-Oct-02 2:52
Steve S24-Oct-02 2:52 
GeneralRe: WTL ? Pin
puzzolino24-Oct-02 3:01
puzzolino24-Oct-02 3:01 
GeneralRe: WTL ? Pin
Paul M Watt24-Oct-02 5:09
mentorPaul M Watt24-Oct-02 5:09 
GeneralRe: WTL ? Pin
puzzolino24-Oct-02 5:30
puzzolino24-Oct-02 5:30 
Generalhash_map question Pin
User 988523-Oct-02 9:38
User 988523-Oct-02 9:38 
GeneralRe: hash_map question Pin
Tim Smith23-Oct-02 10:31
Tim Smith23-Oct-02 10:31 
By maintaining a sorted hash chain, if the compare fails greater than then either this entry matches or there is no chance that any later entries in the chain will match.

STLPort uses a equal_to system for hash_maps. But even looking at STLPort, there is some stuff in hash_map that is a little silly because of the need to be very generic. It will only bite you if your key compares are expensive (i.e. string compares).

Which system is better? You can't say since both systems have advantages. For example, the Dink system will average (depth/2+1) for successful searches while STLPort will average (depth/2). However, if you have a system where you will have many misses, Dink system will average (depth/2+1) while STLPort will average (depth). However, since Dink is using a sort chain, that will slow down inserts.

Once again proving my point that if performance is important, the general solution isn't the best.

Tim Smith

I'm going to patent thought. I have yet to see any prior art.
GeneralRe: hash_map question Pin
User 988524-Oct-02 8:21
User 988524-Oct-02 8:21 
GeneralRe: hash_map question Pin
Tim Smith24-Oct-02 14:20
Tim Smith24-Oct-02 14:20 
GeneralRe: hash_map question Pin
Tim Smith24-Oct-02 14:29
Tim Smith24-Oct-02 14:29 
GeneralRe: hash_map question Pin
Tim Smith24-Oct-02 14:41
Tim Smith24-Oct-02 14:41 
GeneralRe: hash_map question Pin
User 988525-Oct-02 1:56
User 988525-Oct-02 1:56 
GeneralRe: hash_map question Pin
Joao Vaz25-Oct-02 6:10
Joao Vaz25-Oct-02 6:10 
GeneralRe: hash_map question Pin
Tim Smith25-Oct-02 7:16
Tim Smith25-Oct-02 7:16 
GeneralRe: hash_map question Pin
Joao Vaz25-Oct-02 7:48
Joao Vaz25-Oct-02 7:48 
GeneralRe: hash_map question Pin
Tim Smith25-Oct-02 8:38
Tim Smith25-Oct-02 8:38 
GeneralRe: hash_map question Pin
Joao Vaz25-Oct-02 8:56
Joao Vaz25-Oct-02 8:56 
GeneralRe: hash_map question Pin
User 988530-Oct-02 13:39
User 988530-Oct-02 13:39 
GeneralRe: hash_map question Pin
Tim Smith30-Oct-02 14:49
Tim Smith30-Oct-02 14:49 
GeneralRe: hash_map question Pin
User 988530-Oct-02 16:09
User 988530-Oct-02 16:09 
Generalxstring info Pin
Senkwe Chanda23-Oct-02 0:38
Senkwe Chanda23-Oct-02 0:38 
GeneralRe: xstring info Pin
Senkwe Chanda23-Oct-02 1:35
Senkwe Chanda23-Oct-02 1:35 
GeneralRe: xstring info Pin
Tim Smith23-Oct-02 2:38
Tim Smith23-Oct-02 2:38 
GeneralRe: xstring info Pin
ian mariano29-Oct-02 3:04
ian mariano29-Oct-02 3:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.