Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id B0DAA780ECC for <~alpine/apk-tools@lists.alpinelinux.org>; Wed, 19 Feb 2020 18:42:38 +0000 (UTC) Received: by mail-lj1-f178.google.com with SMTP id q8so1475028ljb.2 for <~alpine/apk-tools@lists.alpinelinux.org>; Wed, 19 Feb 2020 10:42:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cSrPpsuP7PPethsXOUKXGsqZgSdcZ5kar3lgNJDh4Ns=; b=Q9vZ3tDzRNTJdO8XTqRCs2uY/BPaScnhw9VxADBT/dXrfYG2TsrJpvG3OZaapjABXQ NJog2EAoHpVb+aqAz1CRWl06UfIHzlmFZgp4zqe6SmQQjvvpEbvpfZZzIyzHfdoJZx9T TJ1BIRMnpJTK5s6r9pji/N8STEFS7ncnPEYWygb7cMQezBjxO1cpZzuGIafpVoIJxY1K ZdbJzOcN8L/06oH6nWD6uR5VLRea5tSuN0Fz8QBg59t4vpN48OT4JwYFyjuIstThwxIY e3sjg0UZtbxfwcF2YNC+EcrAgsWR7P8v93Uoi8+J6weQpMK6Pl3Oeo1XuQTt1rJbygYR npyA== X-Gm-Message-State: APjAAAWiyYfM0/KX82lEbJeVnFZC+77XRG4o2M7KiPq5EssL+uf118oL xr2aYp4fx6V3ouiRCZKD13M= X-Google-Smtp-Source: APXvYqwGOEy/17CNOQkeymkpm94ijHXjyhksWfdgddU2MLKtr79rHhFJ+i6js3LV1Zu2j14iXU/kJQ== X-Received: by 2002:a2e:8797:: with SMTP id n23mr15595393lji.176.1582137757628; Wed, 19 Feb 2020 10:42:37 -0800 (PST) Received: from vostro.wlan (dtc5qkyyyyyyyyyyyyx9y-3.rev.dnainternet.fi. [2001:14ba:80b2:d400::4fa]) by smtp.gmail.com with ESMTPSA id q17sm297869ljg.23.2020.02.19.10.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2020 10:42:37 -0800 (PST) Date: Wed, 19 Feb 2020 20:42:33 +0200 From: Timo Teras To: "Ariadne Conill" Cc: "Carl Chave" , ~alpine/apk-tools@lists.alpinelinux.org Subject: Re: APK Package Name Issue on armel port Message-ID: <20200219204233.49e5a568@vostro.wlan> In-Reply-To: <4e90cb4a79798ceb74b224574a2da77c@dereferenced.org> References: <20200219104752.01d68e90@vostro.wlan> <20200217123334.031047d1@vostro.wlan> <20200214105215.6873e402@vostro.wlan> <62f21c96-ff43-83e4-5b7f-2e65e6d72729@adelielinux.org> <20200217111200.08405b9c@vostro.wlan> <340209c209104e20dd01b7b6aa71251c@dereferenced.org> <4e90cb4a79798ceb74b224574a2da77c@dereferenced.org> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 19 Feb 2020 18:17:37 +0000 "Ariadne Conill" wrote: > > Though, perhaps this is becoming less important. That is, the > > interning of most package data is not needed as we mmap the files in > > future. If the result is that hashing is needed for short strings > > only, such as the package name, it might be worth looking at > > simplifying things by going to FNV-1. > > Yeah, that is what I mean. As the current design is moving away > from the use of interned strings, it may make more sense to use a > simpler byte-for-byte hashing algorithm. That way we don't have > to worry about alignment. Right. Though, the fix was simple (and committed now), just lead the 4 bytes by separate byte loads. It should be still better quality and faster, as the major speed up comes from batching the mix operations every 4 bytes, instead of having multiplication per byte. But yeah, we can re-evaluate things with the new formats. Timo