[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Estimating build time
From: |
Clément Lassieur |
Subject: |
Re: Estimating build time |
Date: |
Sat, 13 Oct 2018 01:13:17 +0200 |
User-agent: |
mu4e 1.0; emacs 26.1 |
Ludovic Courtès <address@hidden> 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’t want to do that every time.
> 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’s the obvious downside that both approaches rely on having
> previously built the package, but I think that’s a necessary limitation,
> unless we are to resort to external services (which could hardly provide
> estimates that make sense for the user’s 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ément
- Re: hpcguix-web, channels, and inferiors, Clément Lassieur, 2018/10/03
- Re: hpcguix-web, channels, and inferiors, Ludovic Courtès, 2018/10/04
- Re: hpcguix-web, channels, and inferiors, Clément Lassieur, 2018/10/04
- Re: hpcguix-web, channels, and inferiors, Ludovic Courtès, 2018/10/05
- Re: hpcguix-web, channels, and inferiors, Ricardo Wurmus, 2018/10/05
- Re: hpcguix-web, channels, and inferiors, Ludovic Courtès, 2018/10/05
- Re: hpcguix-web, channels, and inferiors, Ricardo Wurmus, 2018/10/11
- Estimating build time, Ludovic Courtès, 2018/10/12
- Re: Estimating build time,
Clément Lassieur <=
- Re: Estimating build time, Pierre Neidhardt, 2018/10/13
- Re: Estimating build time, Efraim Flashner, 2018/10/14