• Jeremy Hylton's avatar
    Add presumed speed optimization for pack(). · f09b2346
    Jeremy Hylton authored
    Only open the file for unbuffered I/O after finishing the first phase
    of pack.  The first phase gets its end-of-file position from the main
    thread, so there's no possibility of reading a 'c' record.
    
    Timings on Linux are inconclusive, but it seems like using buffered
    I/O for the initial phase should be faster.
    f09b2346
fspack.py 24.1 KB