Console? good, GUI? good, game dev? use Godot engine with its similar language Gdscript, but what else? Ive been seeing AI, Data Science stuff, but whats the point if ita slow?

  • FishFace@piefed.social
    link
    fedilink
    English
    arrow-up
    6
    ·
    14 hours ago

    Yeah, want to take a bet on how long a single lookup in a dict with 5,000 entries takes on my machine?

    How to sort and index it

    It’s a hash table. Can you explain why “sorting and indexing” would improve performance?

    You’re talking out your arse.

    • atzanteol@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 hours ago

      You’re talking out your arse.

      And honestly - what do you expect for a response with a shitty attack like that? Do you need to be a dick?

    • atzanteol@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 hours ago

      I mis-remembered, it was a linear search though a list rather than a dict that was the problem (I think it was a list because we were looking up multiple entries or something from a list of Objects based on a field). O(N) lookup to be sure so not well optimized. But on list of 100,000 items doing 100,000 lookups it is very slow - > 1 minute whereas in Java it was like a few seconds.

      Yes - refactoring was the solution. I’m not saying it couldn’t perform better and it did when we re-wrote it. But that’s a low-enough number of items that it surprised me that it was a problem.