From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=new2025; t=1757227273; bh=sYUVN89f98PcPuUZJkfQLUWd7BMYn//yKyXc9sscAK8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type:Content-Transfer-Encoding:Message-ID:Date:From: Reply-To:Subject:To:Cc:In-Reply-To:References:Resent-Date: Resent-From:Resent-To:Resent-Cc:User-Agent:Content-Type: Content-Transfer-Encoding; b=WNSE861doDbj5ZzDOYV/Tt0aqGrvnXhvdA7xHWiYjt0T+nxsirPquI8JRelGPJyZ8 P7A5EaCNcnc5ObRbB6GmsFoPBA+VQCDo8v3utEKKwOj+mGmIzdWY3VEmTgmRlxemvN fiNpIGgJEJtaASDnEvpXm78nuuwyfSb2aE95eCkjWZhhW+uSI+es9DP0ocqS8NLSj/ Fs2rjZG+eX6rns9RmZjNT67LrQTMXCkZQSz0R1P4MfhFVIsE665f7Y2gKZecq6Ui3c uRcHEtchmGTIOeOqui8tnKu+lo/qM+eOe5QewDMOb2K5fqRgn69vhgJIfFzmCbemF6 6/NE+166qwFgg== Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id 244EA31279DD for ; Sun, 7 Sep 2025 06:41:13 +0000 (UTC) Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-336b5c44a5bso37538131fa.1 for ; Sat, 06 Sep 2025 23:41:13 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWnXVoqls4/fpCdC3pBy8kQSZE2lX39bIJYCSPJz/S1yOjqG7ys+Ui1qqM6aQBP2azRyeeg@vger.gnuweeb.org X-Gm-Message-State: AOJu0YxZHRESFvgTFE3l7dCh9POd/tahBPcZ3eU/yHpb+xAozLMCzi8L oElgNj1BU6GbYVHmEdE6YQILqrnzqoXCREyyBCMMpIu1KwNss9rQmB0HqlPIaUCoULGAHjGqc0f zqPBm4TMOHJY650iEYMIutLQuH/Vt9HI= X-Google-Smtp-Source: AGHT+IEyL+nqIVNCl3t7SBwlEGr6sCSBZgC4LWkZSEDB2boAgx6nxzDZN56Uc5r3JASafY20MmL9ZXOTQSXL1PPI1fI= X-Received: by 2002:a2e:a016:0:20b0:336:83d3:9210 with SMTP id 38308e7fff4ca-33bb15ffba8mr8799191fa.22.1757227272559; Sat, 06 Sep 2025 23:41:12 -0700 (PDT) MIME-Version: 1.0 References: <20250829075557.598176-1-reyuki@gnuweeb.org> <20250829075557.598176-3-reyuki@gnuweeb.org> In-Reply-To: From: Ahmad Gani Date: Sun, 7 Sep 2025 13:40:35 +0700 X-Gmail-Original-Message-ID: X-Gm-Features: Ac12FXxKBu3gVYJ4YVAG54axkplmjvaKktSoQaEfROu0-epjKo81x6AyjHjzzU0 Message-ID: Subject: Re: [PATCH gwproxy v8 2/2] gwproxy: refactor code base to add experimental raw DNS backend To: Ammar Faizi Cc: Alviro Iskandar Setiawan , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: On Sun, Sep 7, 2025 at 1:39=E2=80=AFPM Ahmad Gani wrote: > Is using a stack more advantageous than incrementing txid until it > recycles itself? we can still keep track of unused indexes by checking > if the session_map[txid] is NULL or not. Oh wait, I think it's indeed more efficient to use stack rather than checking for NULL, if the session_map is occupied in linear, the checking may take longer to iterate until it finds NULL.