From owner-freebsd-hackers@freebsd.org Thu Oct 18 06:16:35 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C52C10CF1AE for ; Thu, 18 Oct 2018 06:16:35 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 0608B7D6C7 for ; Thu, 18 Oct 2018 06:16:34 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.55.3]) by phk.freebsd.dk (Postfix) with ESMTP id 51E4214816; Thu, 18 Oct 2018 06:16:27 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.15.2/8.15.2) with ESMTPS id w9I6GQMI092616 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 18 Oct 2018 06:16:26 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.15.2/8.15.2/Submit) id w9I6GP3I092615; Thu, 18 Oct 2018 06:16:25 GMT (envelope-from phk) To: Warner Losh cc: Yuri Pankov , "freebsd-hackers@freebsd.org" Subject: Re: embed endian info in locale data files magic (PR231965) In-reply-to: From: "Poul-Henning Kamp" References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <92613.1539843385.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Thu, 18 Oct 2018 06:16:25 +0000 Message-ID: <92614.1539843385@critter.freebsd.dk> X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2018 06:16:35 -0000 -------- In message , Warner Losh writes: >> 3. Always store the data in LE (or BE, doesn't matter), and >> appropriately convert while reading. This will likely require least >> change. > >I like this. The locale stuff can have a surprisingly large performance impact, so it might be a good idea to run some benchmarks first. -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= .