From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Cl=C3=A9ment?= Lassieur Subject: Re: Estimating build time Date: Sat, 13 Oct 2018 01:13:17 +0200 Message-ID: <87a7ni3gj6.fsf@lassieur.org> References: <87pnxqkbmg.fsf@gnu.org> <87zhvv5c4n.fsf@lassieur.org> <875zyi191w.fsf@inria.fr> <87sh1l62ge.fsf@lassieur.org> <87zhvs69gd.fsf@inria.fr> <87ftxksk0v.fsf@elephly.net> <87bm885pwt.fsf@inria.fr> <87pnwgnvd8.fsf@elephly.net> <87a7njgnsb.fsf_-_@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gB6ci-0004Bh-Ar for guix-devel@gnu.org; Fri, 12 Oct 2018 19:13:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gB6cb-0006Bs-LO for guix-devel@gnu.org; Fri, 12 Oct 2018 19:13:35 -0400 In-reply-to: <87a7njgnsb.fsf_-_@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Ludovic Court=C3=A8s writes: > In a similar vein, the attached module provides code to estimate package > build time based on locally-available build logs. It can be used to > show hints like this: [...] > The obvious downside is that it works by first retrieving the names of > the files under /var/log/guix/drvs, and then opening, decompressing, and > parsing the candidate log files. That typically takes a few seconds on > a recent SSD laptop, but clearly we don=E2=80=99t want to do that every t= ime. > We could maintain a cache, but even then, it might still be too > expensive. > > Perhaps we should keep build times in the database somehow; the daemon > can keep it up-to-date. > > Thoughts? > > There=E2=80=99s the obvious downside that both approaches rely on having > previously built the package, but I think that=E2=80=99s a necessary limi= tation, > unless we are to resort to external services (which could hardly provide > estimates that make sense for the user=E2=80=99s machine anyway.) I think it's an excellent idea! I agree that the downside is necessary, and yes, keeping the build times in the database sounds good! Cl=C3=A9ment