From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by gnuweeb.org (Postfix) with ESMTPSA id 5D0C97E257 for ; Wed, 19 Oct 2022 22:37:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666219025; bh=D9ZL9PugD36HFgXolZFY/TcRlhziuFO/oVLDFCx1N8A=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hZnCygwcNWsxVUEGt8l9CsXHeI3F/x+Hq+MTk2cZMegI68q7d8Tx+mD/OiVCVJqON SM60EsNrJRZwl+GYQ0rF5kO1FodQ/ds36LaGyBZzbbIya9RxkH8IHuWVW34tpXQJpX 2v5M77bq7/UOs6OuRWLuTLI2Hb37fOx1gzS7zjcQlZUAuc2WpdsfB0+FmOXfkSeURb AZOp9l41v33DJUGg2tENoAHB6gsUlwGZU6+7opsdPQZZWoa8ZCb+/l1bUfkjJ1IAqp qmEhgyRnvx3oJwz6+QVjSH5UG9xtGr87ztE9t2ZWAtB1DGs3OcJ50rp+YfSQR4taUK BmCl8sXDWLAWg== Received: by mail-lf1-f46.google.com with SMTP id d6so30522865lfs.10 for ; Wed, 19 Oct 2022 15:37:05 -0700 (PDT) X-Gm-Message-State: ACrzQf0nSVUzPwx8DHZw/tFXj82Q14VmKPsvki6ra10+YTFKpHi0ZDyV zNENVlAJp2K3lt9P8gDKJShanKZvQrT3wgrX2H4= X-Google-Smtp-Source: AMsMyM4bo48zbE8OipjE1KlO5ufQ7fEdQVOvfJXEy60qWbWaTxIE03ZJgk9aIUOLdwTfIdeO0VCZ5DsLq+hogIaZCUg= X-Received: by 2002:a05:6512:1586:b0:498:fa29:35ec with SMTP id bp6-20020a056512158600b00498fa2935ecmr3855294lfb.641.1666219023425; Wed, 19 Oct 2022 15:37:03 -0700 (PDT) MIME-Version: 1.0 References: <20221019164309.1709541-1-ammarfaizi2@gnuweeb.org> In-Reply-To: <20221019164309.1709541-1-ammarfaizi2@gnuweeb.org> From: Alviro Iskandar Setiawan Date: Thu, 20 Oct 2022 05:36:52 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH ncns v1 0/2] Small optimization and improve debugging experience To: Ammar Faizi Cc: Muhammad Rizki , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" List-Id: On Wed, Oct 19, 2022 at 11:43 PM Ammar Faizi wrote: > # Patch 1 > chnet: Optimize put_thread() path > > The `delete` call doesn't have to be protected by mutex. Move it > to the outside of the locked region to reduce the `put_thread()` > critical section time. or we shouldn't delete it at all? -- Viro