• Jeremy Hylton's avatar
    Add presumed speed optimization for pack(). · 96659bd7
    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.
    96659bd7
fspack.py 24.1 KB