Skip to main content
14 events
when toggle format what by license comment
Sep 8, 2024 at 19:19 comment added Confettimaker I'm glad you got your VS Code stuff figured out. A slowdown close to 35x from that is crazy.
Sep 8, 2024 at 7:43 comment added timeslidr I'm running it with pypy3 and now I'm getting speeds between as-is and your optimizations.
Sep 8, 2024 at 4:29 comment added Confettimaker I'm running a i9-13900K, but I wouldn't imagine it'd be ~35x faster.
Sep 8, 2024 at 4:26 history edited Confettimaker CC BY-SA 4.0
added 342 characters in body
Sep 8, 2024 at 4:18 comment added timeslidr Also, I just noticed your output as-is is much much faster than mine. I'm getting 4170 seconds for 14 blocks while you seem to be getting only 116. I'm using a i5-12600K.
Sep 8, 2024 at 4:17 comment added Confettimaker Of course! heappush and heappop are from the heapq library.
Sep 8, 2024 at 4:15 comment added timeslidr Thank you very much for your help. Where are you defining heappush? I'm getting name 'heappush' is not defined
Sep 8, 2024 at 4:04 history edited Confettimaker CC BY-SA 4.0
deleted 8 characters in body
Sep 8, 2024 at 3:50 history edited Confettimaker CC BY-SA 4.0
Added output comparison
Sep 8, 2024 at 3:44 history edited Confettimaker CC BY-SA 4.0
added 2 characters in body
Sep 8, 2024 at 3:38 history edited Confettimaker CC BY-SA 4.0
added 273 characters in body
Sep 8, 2024 at 2:35 history edited Confettimaker CC BY-SA 4.0
added 1 character in body
Sep 8, 2024 at 2:29 history edited Confettimaker CC BY-SA 4.0
edited body
Sep 8, 2024 at 2:24 history answered Confettimaker CC BY-SA 4.0