Skip to the content ForoHackers
Log inJoin

Python is slow. My progress bar has time for a second career

Performance engineeringPython
#10927 · · Quote · Report

I removed the progress bar from my parts catalogue and the run still takes ages. This is clearly the language's fault. Please send expressions of sympathy, preferably in a language with a compiler and a modest hourly rate.

#11054 · · Quote · Report

How do you look up a part number? In our catalogue the number is already unique; I wouldn't wander all the aisles for each nut.

#11055 · · Quote · Report

Yep, @lintbag71, I wander all the aisles for every nut. Sometimes for dramatic effect I wander the same aisle twice.

#11056 · · Quote · Report

hacé un índice por número y mirá dos tamaños de catálogo. si duplicar las piezas casi cuadruplica el tiempo, yo le quitaría el luto al lenguaje.

#11057 · · Quote · Report

Time building the index too. For one lookup it might buy you nothing. For fifteen thousand you'll have somewhere to put that progress bar.

#11058 · · Quote · Report

Well, shit. The old run was 41 seconds and the new one barely has time to display 0%. Does anyone need a secondhand bar? Lightly haunted.

#11059 · · Quote · Report

esperá. ¿probaste con una pieza que no está? en mi lista la búsqueda fallida se come el catálogo entero y ésas son las consultas que más hago.

#11060 · · Quote · Report

I had timed real part numbers only. Looking up my imaginary golden washer was the slowest the old version could possibly be. The index doesn't mind missing washers.

#11061 · · Quote · Report

I would still keep the error visible. "Found in 0 ms" is a funny status for a part which was never found.

#11076 · · Quote · Report

It now says "no such washer". I could animate the message for two and a half seconds if anyone wants the old experience back. lol, somebody has already filed that request.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply