Giter Club home page Giter Club logo

Comments (7)

chybz avatar chybz commented on May 17, 2024

Hi, just to let you know I finally found the issue. In documentation, you're using typename HT::hasher hasher and then hashval = hasher(key), whereas I found in bench.cc that you use hashval = hash.hash(key). When I changed to the latter, insert works fine.

from parallel-hashmap.

greg7mdp avatar greg7mdp commented on May 17, 2024

@chybz where did you see that reference to typename HT::hasher in the documentation?
But you are right the original version should work as well, sorry for the issue. I'll look into fixing this.

from parallel-hashmap.

chybz avatar chybz commented on May 17, 2024

Thanks @greg7mdp for your update.

It's there in the code block right after "and here is the code for the multi-threaded insert".

I've another question, though. Could you please add an insert(...) method when map subkey is already known, similar to what find(key, subkey) does ? My use case is that I have a hierarchical and parallel aggregation on many groups, merged in parallel and when I merge, I already computed map subkeys and would like to reuse them. Note that I cannot insert directly a map in another map because I must know what entries are new.

Thanks for any help.

from parallel-hashmap.

greg7mdp avatar greg7mdp commented on May 17, 2024

Sounds good @chybz I'll try to get this done this week-end. Thanks for pointing out the location of the code!

from parallel-hashmap.

greg7mdp avatar greg7mdp commented on May 17, 2024

Hi @chybz I tried adding the insert() with the hash value provided, but in my tests it doesn't make any speed difference, so I am not sure it is worth it.

from parallel-hashmap.

chybz avatar chybz commented on May 17, 2024

Hi @greg7mdp, thank you very much for the time you spent on the subject !

from parallel-hashmap.

greg7mdp avatar greg7mdp commented on May 17, 2024

Hi @chybz pas de problème, merci d'utiliser parallel_hashmap!

from parallel-hashmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.