Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2008 16:24:40 +0200
From:      Michel Talon <talon@lpthe.jussieu.fr>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: [patch] pkg_delete(1) speedup
Message-ID:  <20080331142440.GA95979@lpthe.jussieu.fr>

next in thread | raw e-mail | index | archive | help
Roman Divacky wrote:

> To my eye, it doesn't look like matchbyorigin() could be
> re-implemented
> to be faster with little effort, but could somebody have a quick look
> as well? Would doing mmap() instead of scanning file line-by-line be
> any faster? (though I'm not saying it's a great idea)

In the python script check_pkg.py that i mentioned previously (*), i
observed that implementing a mmap solution insted of working line by
line produced a *great* speedup (5 times if i remember well), but
perhaps this is due to python specifics.

(*) http://www.lpthe.jussieu.fr/~talon/pkg_check.py

-- 

Michel TALON




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080331142440.GA95979>