Changeset 2572


Ignore:
Timestamp:
Mar 8, 2013, 6:38:24 PM (7 years ago)
Author:
sam
Message:

sys: use progressively larger temporary buffers when reading files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sys/file.cpp

    r2570 r2572  
    8585            memcpy(&ret[oldsize], &buf[0], done);
    8686
    87             /* XXX: we could resize the buffer here
    88              * buf.Resize(buf.Count() * 3 / 2); */
     87            buf.Resize(buf.Count() * 3 / 2);
    8988        }
    9089        return ret;
Note: See TracChangeset for help on using the changeset viewer.