• zkfcfbzr@lemmy.world
      link
      fedilink
      English
      arrow-up
      18
      ·
      20 hours ago

      Hash tables are often used behind the scenes. dicts and sets in python both utilize hash tables internally, for example.

      • source_of_truth@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        edit-2
        19 hours ago

        I’ve only used java but java hash tables are stupid fast in my experience, like everything else in my crap programs was 1000 times slower than the hash table access or storage.

        Just reading the title, it’s talking about searching hash tables, which wasn’t something I was specifically doing.

            • Trailblazing Braille Taser@lemmy.dbzer0.com
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              8 hours ago

              I wrote my comment not to antagonize you but to point out that you’re asking the wrong questions. I failed to articulate that, and I’m sorry for being harsh.

              Your prior comment indicated that you have used hash tables in Java, which were very fast. You said that your program accessed the hash tables, but did not “search” the table. These operations are the same thing, which led me to believe you’re out of your depth.

              This last comment asks me how much this paper’s contribution speeds up an average program. You’re asking the wrong question, and you seem to be implying the work was useless if it doesn’t have an immediate practical impact. This is a theoretical breakthrough far over my head. I scanned the paper, but I’m unsurprised they haven’t quantified the real-world impact yet. It’s entirely possible that despite finding an asymptotic improvement, the constant factors (elided by the big O analysis) are so large as to be impractical… or maybe not! I think we need to stay tuned.

              Again, sorry for being blunt. We all have to start somewhere. My advice is to be mindful of where the edge of your expertise lies and try to err on the side of not devaluing others’ work.

        • deegeese
          link
          fedilink
          English
          arrow-up
          1
          ·
          13 hours ago

          If you use a hash table, you search every time you retrieve an object.

          If you didn’t retrieve, why would you be storing the data in the first place?

    • lime!@feddit.nu
      link
      fedilink
      English
      arrow-up
      9
      ·
      20 hours ago

      anything that deserializes arbitrary json will put it into a hash table, right? it would definitely speed up the web.