commit | 19901956f0a53a93ddd79842157f12241cc9d450 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sat Jul 29 08:18:37 2006 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sat Jul 29 08:18:37 2006 -0400 |
tree | a1b155ed8a54e1f637aaedbd5760944e78a72e64 | |
parent | 1fefb8b07cd3e67f39bec6f2c5da3cd2b1964627 [diff] |
rewrite getline() to avoid double-copy. it's read(2)-based now instead of fgets(3)-based, does all buffering itself and is considerably faster that way. Note that we spend a _lot_ of time in it while parsing the map - for large deltas the map can easily be *big*.