(no title)
pourred | 1 year ago
Just the other day I was trying to sort a large array of strings in Swift and it was painfully slow. A 3 lines Python script managed to sort the same dataset _at least_ 10x faster.
pourred | 1 year ago
Just the other day I was trying to sort a large array of strings in Swift and it was painfully slow. A 3 lines Python script managed to sort the same dataset _at least_ 10x faster.
_rend|1 year ago
pourred|1 year ago
As a dataset, I just use find to generate a list of paths from the file system:
find / > large.txt
I tested with Swift 5.7 and 5.9, and Python is always between 4x and 10x faster.
bhokbah|1 year ago