From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11664 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] optimize malloc0 Date: Wed, 5 Jul 2017 10:49:10 +0200 Message-ID: <20170705084909.GF2032@port70.net> References: <20170626214339.10942-1-amonakov@ispras.ru> <20170704214554.GS1627@brightrain.aerifal.cx> <20170704233910.GW1627@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1499244594 20960 195.159.176.226 (5 Jul 2017 08:49:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Jul 2017 08:49:54 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) To: musl@lists.openwall.com Original-X-From: musl-return-11677-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jul 05 10:49:46 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dSfzr-0004hz-1m for gllmg-musl@m.gmane.org; Wed, 05 Jul 2017 10:49:19 +0200 Original-Received: (qmail 11400 invoked by uid 550); 5 Jul 2017 08:49:22 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 11382 invoked from network); 5 Jul 2017 08:49:21 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <20170704233910.GW1627@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:11664 Archived-At: * Rich Felker [2017-07-04 19:39:10 -0400]: > On Wed, Jul 05, 2017 at 02:09:21AM +0300, Alexander Monakov wrote: > > I can rewrite it fully forward scanning without much trouble, but I > > think it wouldn't be for the better. > > *nod* I'll re-check the version you submitted just to be sure I > understand and agree that it's doing what I think it is, with the plan > of going with it or something very similar. I might add some comments > as a follow-up patch. i think may_alias should be added and uint64_t used instead of unsigned long long (which may have a size that does not divide pagesize)