ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] Оптимизируем hasher для работы с фиксированным репозиторием. II.
Date: Tue, 8 Sep 2020 18:01:37 +0300
Message-ID: <20200908150137.GA29502@altlinux.org> (raw)
In-Reply-To: <20200908001233.GA18009@dad.imath.kiev.ua>

On Tue, Sep 08, 2020 at 03:12:33AM +0300, Igor Vlasenko wrote:
> Оптимизируем hasher для работы с фиксированным репозиторием. II.
> ________________________________________________________________
> 
> При запуске hasher, если hasher/cache/ уже есть,
> то hasher проверяет, не изменился ли репозиторий, и если изменился,
> то обновляет hasher/cache/, иначе использует hasher/cache/.
> 
> По условиям задачи у нас фиксированный репозиторий. Это означает,
> что репозиторий не меняется без нашего ведома -- к примеру,
> локальное зеркало ежедневного релиза Сизифа.
> 
> Вторая оптимизация позволяет ускорять любые работы с hasher.
> 
> Ее суть проста: поскольку мы явно знаем, что репозиторий не менялся,
> то сообщить об этом hasher'у опцией вроде --same-repository,
> чтобы он поверил человеку на слово, пропустил тяжелые проверки,
> и сразу использовал свой hasher/cache/.

Я думаю, что поддержка $unchecked_initroot_cache, которая была реализована
весной прошлого года в hasher-1.3.36, предназначена для решения именно
этой задачи.  Эта оптимизация используется в install check на сборочнице.

Пример использования:
unchecked_initroot_cache="$(sed '/^task[[:space:]]\+/!d;s///;q' /path/to/Sisyphus/files/list/task.info)"


-- 
ldv


  parent reply	other threads:[~2020-09-08 15:01 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-08  0:12 Igor Vlasenko
2020-09-08 10:03 ` Andrey Savchenko
2020-09-08 10:15   ` Michael Shigorin
2020-09-08 11:30   ` Igor Vlasenko
2020-09-08 12:18     ` Alexey V. Vissarionov
2020-09-08 14:37       ` Igor Vlasenko
2020-09-08 14:39         ` Anton Farygin
2020-09-08 14:54           ` Paul Wolneykien
2020-09-08 14:55             ` Anton Farygin
2020-09-08 15:01 ` Dmitry V. Levin [this message]
2020-09-08 15:09   ` Anton Farygin
2020-09-08 19:05     ` [devel] hasher unchecked_initroot_cache Dmitry V. Levin
2020-09-08 21:28       ` Igor Vlasenko
2020-09-08 16:14   ` [devel] Оптимизируем hasher для работы с фиксированным репозиторием. II Igor Vlasenko
2020-09-08 16:38     ` Gleb Fotengauer-Malinovskiy
2020-09-08 17:15       ` Igor Vlasenko
2020-09-08 19:11     ` Dmitry V. Levin
2020-09-09  5:21       ` Andrey Savchenko
2020-09-09  9:24         ` Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200908150137.GA29502@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git