Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dv1Yt-0005jL-Tx for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Sep 2017 13:30:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dv1Yt-0000eE-G8 for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Sep 2017 13:30:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dv1Yq-0000PY-U1 for pgsql-hackers@postgresql.org; Thu, 21 Sep 2017 13:30:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dv1Yo-0003g8-HN for pgsql-hackers@postgresql.org; Thu, 21 Sep 2017 13:30:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v8LDUVrl007215; Thu, 21 Sep 2017 09:30:31 -0400 From: Tom Lane To: Andrew Dunstan cc: Haribabu Kommi , PostgreSQL-development Subject: Re: Windows warnings from VS 2017 In-reply-to: References: <8649.1505951694@sss.pgh.pa.us> Comments: In-reply-to Andrew Dunstan message dated "Thu, 21 Sep 2017 08:11:35 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7213.1506000631.1@sss.pgh.pa.us> Date: Thu, 21 Sep 2017 09:30:31 -0400 Message-ID: <7214.1506000631@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andrew Dunstan writes: > The speed of memset is hardly going to be the dominating factor in a > 'CREATE DATABASE' command, so we could certainly afford to change to > plain memset calls here. Another thought is that it may be time for our decennial debate about whether MemSet is worth the electrons it's printed on. I continue to think that any modern compiler+libc ought to do an equivalent or better optimization given just a plain memset(). If that seems to be true for recent MSVC, we could consider putting an #if into c.h to define MemSet as just memset for MSVC. Maybe later that could be extended to other compilers. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers