Hash table

Everything related to the code /
Tout ce qui touche au code
Post Reply
milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Hash table

Post by milipili » Thu Aug 21, 2008 8:11 am

"The Google SparseHash project contains several hash-map implementations in use at Google, with different performance characteristics, including an implementation that optimizes for space and one that optimizes for speed. The memory-optimized one is extremely memory-efficient with only 2 bits/entry of overhead."

http://code.google.com/p/google-sparsehash/
Damien Gerard
Ta3d & Yuni Developer

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Thu Aug 21, 2008 1:30 pm

That's really interesting :), I am going to have a look at it :D
=>;-D Penguin Powered

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Post by milipili » Sat Aug 23, 2008 9:16 pm

Damien Gerard
Ta3d & Yuni Developer

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sat Aug 23, 2008 10:43 pm

the later looks really interesting since it's already used in popular software :) (compared to google's hash-map implementations which seems unfinished yet).

For example unit categories are mostly known but we use a hash map so we can add new ones without even changing a single line of code, and it could benefit from this :). But I think we should keep that for final optimizations ... there are lots of things to optimize first like loading time which is already much shorter than before :D
=>;-D Penguin Powered

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Post by milipili » Wed Aug 27, 2008 6:02 pm

The google's hash-map is used every day at Google's.

In fact, the standard hash_map is enough and easy to use, when you know the good namespace :)
Damien Gerard
Ta3d & Yuni Developer

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Post by Balthazar » Wed Aug 27, 2008 7:25 pm

:D :D :D :D

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests