Pål Grønås Drange

Results 13 comments of Pål Grønås Drange

> Checking that the results are the same in (nearly) all possible cases (as the current Python version should have the correct behaviour) The results are identical. They both implement...

> you need to provide the modifications you made Here is the modification that allowed me to run it for an arbitrary number of pairs ```patch -def main(): +def main(num_pairs):...

> After a "quick" profile, these two are the longest running functions My point is that the worst-case complexity of the current implementation is _ϴ(n³)_, so it's not really the...

Indeed, just looking at the number of function calls (for _N = 3000_): Current implementation: ``` 2833248468 function calls (2833248370 primitive calls) in 527.844 seconds ``` Alternative implementation: ``` 62561677...

I needed this functionality, so I implemented it, but I unfortunately don't have time to create a PR (mainly because I don't have time to write tests). I licence the...

The error message explains your problem, it has three columns without labels. Simply remove the first semicolon on all lines, and the last two semicolons on all lines. What it...

Thanks, yes, this implementation needs to be thoroughly discussed. Will the example you linked to have the seek synchronized? One of the main issues is the problem of synchronizing the...

| Python version | Running time (sec) | |---|---| | 3.13 | 1.59| | 3.14 | 6.47| | 3.15a | 1.55| These tests (and the PR) has N = 1'000'000....

@sergey-miryanov Thanks for the review. I have fixed all issues you pointed out.

@sergey-miryanov Something strange happens here. Even though I use the context manager (`tempfile.TemporaryDirectory`), occasionally when I kill pyperformance, the directory remains not cleaned up. I am not able to reproduce...