Skip to content Skip to sidebar Skip to footer
Showing posts with the label Timing

How Can I Make My Python Code Run Faster

I am working on code that loops over multiple netcdf files (large ~28G). The netcdf files have mult… Read more How Can I Make My Python Code Run Faster

Why Is `{*l}` Faster Than `set(l)` - Python Sets (not Really Only For Sets, For All Sequences)

So here is my timings: >>> import timeit >>> timeit.timeit(lambda: set(l)) 0.7210… Read more Why Is `{*l}` Faster Than `set(l)` - Python Sets (not Really Only For Sets, For All Sequences)