[pacman-dev] [Bulk] [PATCH] Read .PKGINFO directly from package file
Dan McGee
dpmcgee at gmail.com
Sat Mar 29 15:39:13 EDT 2008
On Sat, Mar 29, 2008 at 2:36 PM, K. Piche <kpiche at rogers.com> wrote:
> Interesting. I was in the process of reading the whole file into a
> buffer and having parse_descfile parse that. Oh well...
That is quite similar to Xavier's patch that keeps an internal buffer
in archive_fgets() in order to reduce calls into libarchive, which
seems to cut the time by half to parse the entire community DB (.12 vs
.07 seconds locally on my desktop machine).
No matter how you cut it, not writing a temp file definitely saves time.
-Dan
More information about the pacman-dev
mailing list