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?

you are viewing a single comment's thread
view the rest of the comments
[–] 8 points 1 month ago (3 children)

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.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 month ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment