Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rom8g-003II8-0M for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Mar 2024 15:21:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rom8e-004pbL-JS for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Mar 2024 15:21:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rom8e-004pbD-9r for pgsql-hackers@lists.postgresql.org; Mon, 25 Mar 2024 15:21:28 +0000 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rom8b-006QJa-Lv for pgsql-hackers@postgresql.org; Mon, 25 Mar 2024 15:21:28 +0000 Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-3678908266dso21657445ab.0 for ; Mon, 25 Mar 2024 08:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711380084; x=1711984884; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=VZvf3T20qk4WqmsZ/KvYqL64lD/LLmDoYiCx5UhdOQw=; b=IsK37PjvhIw28hB5ymQxFHPeNb56O5cRfsPWXyoY25OMIOVaGhH52b9x766ihyyGie FKoVuShDBzeWfMO5D67EmKY4QDku7JHxqs6gcW9ajUxUHq/SXrSO9mQYBcwqPBemzl2i vmKRuymWuV28tTXVPHHMiFfyizX2xf27LBLLB2iVvudAANATHTgtx4hQ6dkuq/1so/7G rb4Lpit5LHHjysY7PaJ9cbiWAmt3MxASiNl3cqR2QSi1OSHHvvkocIB96xHxXwli/RQ2 htFUXibCEnh2Ic6NfoVNaSAmKW61jfMbGfqR5xjW8Ds9/Us3AT7oPxx+w2K5s5do46dX JHsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711380084; x=1711984884; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VZvf3T20qk4WqmsZ/KvYqL64lD/LLmDoYiCx5UhdOQw=; b=Rl1vLsk7NlTIDlB94nVaCkyLiyGk3Lmz5IiM5RFIDsGxFoatqX6scOCni25xb2RzL2 A9aCqbbdClPg0R9hOIXE6DaC8HlkojueRz5Fcn/RhCwz2eb9ogYiYwGpoTirfDIqq9b9 sQtqLccZJ2w+ZkCvr1IGjT9bat3Jl3WEMuiBzXOU/idkqtmjGm2by2LFwdyTUAzaocu0 7eM4COlDH/UHKNiLL5cY2+MAnUwn1nY/nK06wDWB70zUuhxpU3aM1IrAdsRkatuEAVqF lO5l6HvTWceiGf5AjausLvr1CPkl7d2UTB8ltxC3xJiMcndwoFBW7siiMOn+24CubghR 7Jjw== X-Forwarded-Encrypted: i=1; AJvYcCXvjILpeulZZdaGTK7Czj2GmRQ8fWW5WnCEHtcXC4aJ0WzrHxjjMDOeVoRSu+oI228rzQCtslTENDQr/quxp7x8UFvUEFhkIg3I3Euq X-Gm-Message-State: AOJu0YzHbOOVQQbdezO46WTZ8eKpjqnBnj6SMrkqZlnkBycCSeOpQzqx UOHfTmxb+XLEqq3EWYgPU7F0EJExCO8D5K77ogjB2FXq1/FW/AY61/O6wmT0 X-Google-Smtp-Source: AGHT+IFBi2h87u8Mx21W56fgagO2+BrZerjEbin3adcb/n6KJiv1xdKG76/ZG6yWHQ1xlRo7Vex9HQ== X-Received: by 2002:a05:6e02:12ca:b0:366:4967:d932 with SMTP id i10-20020a056e0212ca00b003664967d932mr9214762ilm.7.1711380084157; Mon, 25 Mar 2024 08:21:24 -0700 (PDT) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id n13-20020a92d9cd000000b003689971fd3esm179373ilq.36.2024.03.25.08.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 08:21:23 -0700 (PDT) Date: Mon, 25 Mar 2024 10:21:21 -0500 From: Nathan Bossart To: John Naylor Cc: Ants Aasma , pgsql-hackers@postgresql.org Subject: Re: add AVX2 support to simd.h Message-ID: <20240325152121.GB2662364@nathanxps13> References: <20240319031601.GA828141@nathanxps13> <20240319163033.GA952199@nathanxps13> <20240320143116.GA1313857@nathanxps13> <20240320195513.GA1618413@nathanxps13> <20240321170944.GA1767527@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Mar 25, 2024 at 10:03:27AM +0700, John Naylor wrote: > Seems pretty good. It'd be good to see the results of 2- vs. > 4-register before committing, because that might lead to some > restructuring, but maybe it won't, and v8 is already an improvement > over HEAD. I tested this the other day [0] (only for x86). The results seemed to indicate that the 4-register approach was still quite a bit better. > /* Process the remaining elements one at a time. */ > > This now does all of them if that path is taken, so "remaining" can be removed. Right, will do. [0] https://postgr.es/m/20240321183823.GA1800896%40nathanxps13 -- Nathan Bossart Amazon Web Services: https://aws.amazon.com