Our great sponsors
-
scalene
Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Can't say about the floyd-warshall, since that's from elsewhere. However, I'd suggest profiling the code. For example scalene is pretty decent python profiler.
I implemented the last upper bound in my solution and it results in 1ms total time (in Rust, but it explores only ~100 nodes in part 1 and ~1000 nodes in part 2 so I expect very small timings with other languages as well) https://github.com/SkiFire13/adventofcode-2022-rs/blob/master/src/day16.rs
Related posts
- Scalene: A high-performance CPU GPU and memory profiler for Python
- Scalene: A high-performance, CPU, GPU, and memory profiler for Python
- How can I find out why my python is so slow?
- Cum as putea sa imbunatatesc timpul de rulare al pitonului?
- Scalene - A Python CPU/GPU/memory profiler with optimization proposals