From owner-freebsd-hackers@freebsd.org Thu Oct 18 20:52:23 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 DF703F74CF5 for ; Thu, 18 Oct 2018 20:52:22 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7C86B7E43F for ; Thu, 18 Oct 2018 20:52:22 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id AF87822B92 for ; Thu, 18 Oct 2018 16:52:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 18 Oct 2018 16:52:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.net; h= subject:references:to:from:message-id:date:mime-version :in-reply-to:content-type; s=fm3; bh=Te4ueGyHXySnT0f/4qAVuhm+QGZ +tVbZNIWdNaVFG/A=; b=SDncs8KUQ6UB7JsUI1qUibcIKE8YQZ2p6PtE+N+6Tk7 XnzDfajbwso4B1QCoV1hWGvJYM2YdSijPeBeD5SPgSqOSP+8ZHvq5u5Ok9OKlRvq omp8yqANDdYBoBbUAHwaJ4uA9qlyAJo+kuk6/xep16iTIJcxGDmmsd3eSwZuzRvX DDbkd+iico3iFiHeOHu3k3AqC6PFzn86JQQLA3unirI9uKejE5xYQPOliD44IYZL D74a8ANjKOdhtiOs21uc15p5VqK5eG/g18WuALiNRc4Z2GtC0nx3E6Vt/S2EiSUr gCU6KxTkZQri8BZ5ndqVUeeJWpFxDPaSzvmcSb6hoBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Te4ueG yHXySnT0f/4qAVuhm+QGZ+tVbZNIWdNaVFG/A=; b=osCpAefovInNNs5LnIxHlz /URA/yQmQ4CYfR42WSMZWJAqo+B4d3u8v8VCYxE7bhd50wCcfQSjhLAV326+C/yV Xp8HkpGOyzv5Ob8ZA/GUt9RS3ZdigSQuDC3JVDacBV6sgy+uDytefSD4ZTD9uI+i OsMRVqojTvhie4S/UwuIE/nmlJdGrqNYVnr9EJA5tlaysl3YJnHr35p0XJdocGde H11CzGD4lcF+H70UyQff9/+/ZMiUVSK4vETkU7jeaglQYSExW3J4/A/YBSqIPv4h 5OlGkcEjyJhuDMqPbvPXfEjQTkflLypz0RZWxu9mcKFatr0y5hixkJKDthys1nXQ == X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.2] (unknown [85.173.27.113]) by mail.messagingengine.com (Postfix) with ESMTPA id 34859102E2 for ; Thu, 18 Oct 2018 16:52:20 -0400 (EDT) Subject: Re: embed endian info in locale data files magic (PR231965) References: <92614.1539843385@critter.freebsd.dk> To: freebsd-hackers From: Yuri Pankov Openpgp: preference=signencrypt Autocrypt: addr=yuripv@yuripv.net; keydata= xsBNBFu8u6IBCADB11gP0QwnorrHjqAtKLHKHNHskhy0s7jqJKfx0YqXgVBKGLJ9/mjLAz0F CBNvemHSDDTs0mEZ9cBKKi6cmsav6+UQgr//yai6hvXLBJqKchSFO4MhmdvBtsGFq1yKz5Zi uhjmimKyIpgBgvMdbgGbGq6cnSB2uEPmZuJr419SVRODOkXukU+F5WHgaHzDdHAIu1asCt2B +6msxqIqlFWcXyZyTGicTGGvC/PFIsVRUtD1dIJANTC876g7DTb7LZXWiWwJpSJ4GKMXMHVX Ct9BoQ4i3nhKbOxb6Io1wsy+NFyWsTJ9KYrxKKPJP3oG8BWb/cql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olRsnh64OdGsE8KvorBFBB3zdK/GRt2Jy +jsnTfUWuQllbzMP0MfhCDMk1Mo8WvDH2/cOEP/yLKf20a+cd6nLs7bidjmGXo9pyuBKAtV6 Kv+VRu54AL+A/UBYu/eB3Dtvzcnut+1Zq6KaP++kUwPwINLIk04OBDwN0zRNTiqMAFYYyz2v ZHBB6E1th/l//ZC5b9Dk0ZpFI1bYdL9ymnrZe1MqbGPnDCToQxu00T/pZCm6Z92YrZQYuNwl Message-ID: Date: Thu, 18 Oct 2018 23:52:10 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <92614.1539843385@critter.freebsd.dk> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tF7bYPLEyp2hmgWJvyuc0MfyDwEogvTGq" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 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 20:52:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tF7bYPLEyp2hmgWJvyuc0MfyDwEogvTGq Content-Type: multipart/mixed; boundary="zeVC69HDKDu7ivzgLoHj1A0PJ4E0nGZsv"; protected-headers="v1" From: Yuri Pankov To: freebsd-hackers Message-ID: Subject: Re: embed endian info in locale data files magic (PR231965) References: <92614.1539843385@critter.freebsd.dk> In-Reply-To: <92614.1539843385@critter.freebsd.dk> --zeVC69HDKDu7ivzgLoHj1A0PJ4E0nGZsv Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Poul-Henning Kamp wrote: > -------- > In message > , Warner Losh writes: >=20 >>> 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. >=20 > The locale stuff can have a surprisingly large performance impact, so > it might be a good idea to run some benchmarks first. Thanks for the answers, and especially for mentioning the magic word which is "performance" that I seem to be forgetting about. I have updated the change to skip any runtime conversions and rather make localedef output data in target system's byte order. If anyone wants to take a look, it's still at: https://reviews.freebsd.org/D17603 --zeVC69HDKDu7ivzgLoHj1A0PJ4E0nGZsv-- --tF7bYPLEyp2hmgWJvyuc0MfyDwEogvTGq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE+Gq3PsPeLT4tL/9wk4vgf7Eq4WwFAlvI8noACgkQk4vgf7Eq 4WzMXwgAsxqXQsV+G+JzF9kM65lTkbZAg16/MwKJtVPhDGgqmK1v0VIIwL/Malyq GRaMtsWRZB2wBLiffj3X6vOwTrTEHcTmHDpB8eWG4dFicM6Owt3Mh5NXp4+VD2wy 2EPgM8deLgeSKVQ9mSXk9vqiu2FQfQoXHR12erlSrzcfa6iudbAQcBtkhKBjKiRx dVIdimfFGjQcaAZxX0EfV9GcRbd4T+HGRb0LXkldNK4LJYw5954YS59Hp1qMgtWB i5pezQdjnMPtCJegYenw8j5Fpkp9ZjFDxdFGIkTNMOr+14vBTZ0AhQi2TTjcBEN/ xvRD3yndMLE9uiKmxjdgek46hcSvxQ== =r82M -----END PGP SIGNATURE----- --tF7bYPLEyp2hmgWJvyuc0MfyDwEogvTGq--