News for hackers. Stuff that matters.
Re:Python’s Weak Performance Matters by deckiedan on Wednesday February 07, 2018 @06:50AM (#16323806)
Have you tried using Cython to compile code like the above? Python's sets / maps / reading data etc should be fairly optimised, so Cython might let you bypass boxing counter variables instead using native C ints or whatever.

Also, if the data you're reading is numeric only - or at least non-unicode / character data - you might be able to get a speed boost reading the data as binary not as python text strings.

There are no comments on this comment yet.