X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 3E246DC1222 for ; Wed, 12 Aug 2015 12:32:06 +0000 (UTC) Received: from lithium.8pit.net (lithium.8pit.net [141.101.32.65]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 582F4DC0802 for ; Wed, 12 Aug 2015 12:32:04 +0000 (UTC) Received: from localhost (ip5f5ac946.dynamic.kabel-deutschland.de [95.90.201.70]); by lithium.8pit.net (OpenSMTPD) with ESMTPSA id a21aede4; TLS version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; for ; Wed, 12 Aug 2015 14:32:03 +0200 (CEST) Date: Wed, 12 Aug 2015 14:31:56 +0200 From: =?iso-8859-1?Q?S=F6ren?= Tempel To: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/mdocml: use a cron instead of a trigger to invoke makewhatis(8) Message-ID: <20150812123153.GA889@francium.lan> References: <1439237974-14854-1-git-send-email-soeren+git@soeren-tempel.net> <20150812110154.226f96fc@ncopa-desktop.alpinelinux.org> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20150812110154.226f96fc@ncopa-desktop.alpinelinux.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: ClamAV using ClamSMTP On 12.08.15, Natanael Copa wrote: > I am not sure I like this. How much does it slow things down? are we > talking about 1-2 seconds or 2 minutes? I have 10488 man pages installed: $ find /usr/share/man -type f | wc -l This is the output of 'time apk add mdocml-doc' with this patch: (1/1) Installing mdocml-doc (1.13.3-r5) OK: 819 MiB in 314 packages 0m0.44s real 0m0.00s user 0m0.00s system This is the output of 'time apk add mdocml-doc' without this patch: (1/1) Installing mdocml-doc (1.13.3-r5) Executing mdocml-1.13.3-r4.trigger OK: 818 MiB in 314 packages 0m37.73s real 0m0.00s user 0m0.00s system > The way i think, the index is only needed to be created once, not every > night. If a new man page gets added to /usr/share/man the index needs to be rebuild so it is a good idea to invoke makewhatis(8) automatically in a certain interval. I think invoking it every night is a good interval. > If you can wait til tomorrow for using it, then you will most likely > not need it at all. That's not true at all. The index is created on install already, it's only updated at night. > so i wonder if we should simply move makewhatis and db and all to a > subpackage and have the trigger there. I kind of dislike that idea since it doesn't solve the problem that it takes ages to install packages containing manpages than. S=F6ren. --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---