Performance of int/long in Python 3

Chris Angelico rosuav at gmail.com
Wed Apr 3 09:34:08 EDT 2013


On Thu, Apr 4, 2013 at 12:25 AM, Roy Smith <roy at panix.com> wrote:
>
> Fair enough.  In fact, given that reading the file from disk is O(n) and
> sorting it is O(n log n), at some point, the sort will totally swamp the
> input time.

But given the much larger fixed cost of disk access, that might take
an awful lot of strings...

ChrisA



More information about the Python-list mailing list