From owner-freebsd-current@FreeBSD.ORG Fri Mar 27 22:36:41 2015 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BD10171F; Fri, 27 Mar 2015 22:36:41 +0000 (UTC) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 82F9012B; Fri, 27 Mar 2015 22:36:41 +0000 (UTC) Received: by igbud6 with SMTP id ud6so33088202igb.1; Fri, 27 Mar 2015 15:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=eTi1gs+idClTLJwJuNlBANGh3IhlKzjdXGjsumw6Dfg=; b=WaIGFy0Ji5bdUdek/MKpd+/4JI2g+FVQcQ3wXke3BS98yx0JFIrrDfvuZadvAQhF78 jqoiA4LAwzxh63V/QvbNKU9xN409AVowbJV40VvxORmPdkK09tE8xrx9EhidL40C3VBT 8pOACYlGOS5jEfpfZzsQ4H6/HkJhSGMW0dhYNwmhKriZ2XAG+Kbmia0a4qPOD9C6myFB FB2e3fLPRapwRqwskcU1oCXzNeGjxMWblkQrageW9TG4MoVVoW5bUYMt8aT0dSNNJuz5 Q7vFu1uUQDwHYQRVboIBrKDHygh4Hl5gWBzOzaBfjQe6V9K69sAeUIjPgqVD2k/AzhvI 86Lg== MIME-Version: 1.0 X-Received: by 10.50.67.100 with SMTP id m4mr1663540igt.32.1427495800813; Fri, 27 Mar 2015 15:36:40 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.17.194 with HTTP; Fri, 27 Mar 2015 15:36:40 -0700 (PDT) In-Reply-To: <20150327214057.GA3766@stack.nl> References: <5515AED9.8040408@FreeBSD.org> <20150327214057.GA3766@stack.nl> Date: Fri, 27 Mar 2015 15:36:40 -0700 X-Google-Sender-Auth: HJpCLzm9dg1lmV7fFY2IcCexMv0 Message-ID: Subject: Re: SSE in libthr From: Adrian Chadd To: Jilles Tjoelker Content-Type: text/plain; charset=UTF-8 Cc: Eric van Gyzen , "current@freebsd.org" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2015 22:36:41 -0000 hi, please don't try to microoptimise crap like strlen(). The TL;DR for performant high-throughput code is: if strlen() or memcpy() is the thing that's costing you the most, you're doing it wrong. -adrian