Saltar al contenido ForoHackers

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

Ingeniería de rendimientoPython
#10927 · · Citar · Denunciar

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 · · Citar · Denunciar

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 · · Citar · Denunciar

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

#11056 · · Citar · Denunciar

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 · · Citar · Denunciar

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 · · Citar · Denunciar

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 · · Citar · Denunciar

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 · · Citar · Denunciar

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 · · Citar · Denunciar

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

#11076 · · Citar · Denunciar

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.

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder