From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Wingo Subject: Re: =?utf-8?Q?=E2=80=98core-updates=E2=80=99?= is back! Date: Tue, 29 Aug 2017 11:14:07 +0200 Message-ID: <87val6zqg0.fsf@igalia.com> References: <878ti3uzaz.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]:49760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmcbF-00049m-Ed for guix-devel@gnu.org; Tue, 29 Aug 2017 05:14:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmcbA-0008Ve-Is for guix-devel@gnu.org; Tue, 29 Aug 2017 05:14:21 -0400 In-Reply-To: <878ti3uzaz.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Tue, 29 Aug 2017 00:01:40 +0200") 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 On Tue 29 Aug 2017 00:01, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Yup, I just created a new =E2=80=98core-updates=E2=80=99 branch by pushing > . Enjoy! > > Let=E2=80=99s freeze in one month, say Oct. 1st? It would be pretty cool if we could fix our O(n^2) problems in search paths in this core-updates -- basically whenever you go to create an environment, instead of making e.g. VAR=3DA:B:C:..., for all VARs (LIBRARY_PATH, PKG_CONFIG_PATH, etc), instead we make a union directory Z containing the union of A, B, C, etc and set VAR=3DZ. The goal would be to fix quadratic run-time lookup costs by replacing it with a compile-time computation. This applies to many lookups: PATH, -rpath, etc. For specific variables we might also have to rewrite some internal references, for example to replace the -L line in pkg-config files to point to the union directory. Dunno if there are more examples or if PKG_CONFIG_PATH is the only one. Andy