• zkfcfbzr@lemmy.world
      link
      fedilink
      English
      arrow-up
      17
      ·
      13 days 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
        2
        ·
        edit-2
        13 days 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.

        • deegeese@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          1
          ·
          12 days 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?