From patchwork Thu Dec 26 10:42:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Wong X-Patchwork-Id: 11310435 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ECE60109A for ; Thu, 26 Dec 2019 10:42:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CEA172080D for ; Thu, 26 Dec 2019 10:42:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726075AbfLZKmV (ORCPT ); Thu, 26 Dec 2019 05:42:21 -0500 Received: from dcvr.yhbt.net ([64.71.152.64]:54742 "EHLO dcvr.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725954AbfLZKmV (ORCPT ); Thu, 26 Dec 2019 05:42:21 -0500 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 0539C1F463; Thu, 26 Dec 2019 10:42:21 +0000 (UTC) From: Eric Wong To: Junio C Hamano Cc: git@vger.kernel.org Subject: [PATCH 0/2] packfile: small syscall reductions Date: Thu, 26 Dec 2019 10:42:18 +0000 Message-Id: <20191226104220.27325-1-e@80x24.org> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Being an avid user of strace, redundant syscalls clutter up the output and bother me, so I removed some. Folks with CPU mitigations enabled might also benefit from fewer syscalls. Eric Wong (2): packfile: remove redundant fcntl F_GETFD/F_SETFD packfile: replace lseek+read with pread packfile.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-)