Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124566 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 9C8931A00B7 for ; Wed, 24 Jul 2024 09:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721813460; bh=aJYd3GkERqeVYP2JhEPUx84HhaCFKlIc7Fl5oz0XrV0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nwau3IUI98bEuityPK9po+MafmCtSV7vzzOS7LkCs6BNYJEUcCSVEp33yg+BXVZCR wI0m2moCW67UGA5LA60fVtQutL6tmnzc2q/9x3mKOJEgGPXrjfvz5Zeh5nnBpbfwc+ PrzHty+NXfjbh+NizT+Exy7hWDdsSRNHlh40l9/TAqtkcWilZ5Gw3sH7ZPD3xm3M6n HkQJlI3Kue0a3X6xHv9emTihCEYiWmcQEzATD2T8utYFqeywmv6y+SVk2JI3YlmrNk pkKJ/nUyQuMB/5dbPMQ9JBFewLQ3HwyJyG01oITiTdbxUtspfNFuWZPQvcF1jfb9hX HeJo2ZsHOhLtg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EC879180081 for ; Wed, 24 Jul 2024 09:30:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 24 Jul 2024 09:30:59 +0000 (UTC) Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-6512866fa87so63577327b3.2 for ; Wed, 24 Jul 2024 02:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721813365; x=1722418165; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ff+5FKL7iVQ4+k0pXvLepqosI8KDo3kZjGr9c2H1bgE=; b=T4LpWnPwQIEvmjD9Cj7YpjTfYZztoJoAJzqNnWWDUPjr+DPN32KITwyQPhee7Aumpe +dwDyJo99MTD4FHtW5hQ3ttosvxPQL8gspVsRSmzkNfIZf6iZz5uXFg+JVfCAhMS40VQ 1soJU0UXKZyYnKoPFUK42giKjgla2z8urQILvxZdVhxHegdchOMq9i9Mnx8uwIsKw/qJ WSBBQxx/zMtD+mDg/J9w1Ru4iXCZRRHdX7ygwOuHr7ulLTXhxqN2xGV1+vb0JHoUdo9m TEqZ3ahx9nQ54Ylw0oNTWMlIqzLJl5lNP4KQdaRGzsrxWNq0sSOwIqFnWPn2QMrxfAuV h2Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721813365; x=1722418165; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ff+5FKL7iVQ4+k0pXvLepqosI8KDo3kZjGr9c2H1bgE=; b=Psgqqot6mWw/8iWznBEGZFDdiNeV4WFdJ0xV2kG8NF/kGIdf/p0fRh5kvA1zdyOnig 5pfCXInvEdxKjGcCB1S4vVPhHWPbH4b3SEeTROde0R3fgyGuvzf20Xw8XtEIn+kX91HT y6W/c1LUbNrwv1x4WymnoNvnhu1XcZYHAOYREpXo1epcXe4CM3NNZc7rkTqVG7YXgUr8 aLBf+mloDS6IQ0AG2cBxuU10ppyukTk+lWo5ofgh2Wn3NYMHjtkwlMqMYbZJ9gWaQ1LB joIkY2EzCIxdgefkBUyFDWZC2BdZOPbkWeodtyArTTIYFJrDIxqmRWnI0CkSm275lRZB HTfQ== X-Gm-Message-State: AOJu0Yz1iNHFKy6YNjK0glyQsa/PRHLE8RPxe0cTw5/HeAdRPAvCRd/N 4OsLN2w0OkSwDTRG1g92Po37wfAbE6NcZBs3Fl8raQTG9PhW4mtrTD++vgA/FN6XdLCWYMfLYW+ KwkFqoqN2Bz0oYN8gT858HlXDtCziXi1WiAA= X-Google-Smtp-Source: AGHT+IHt2EDu+S2QbBDiOguhyuQmEQ2bGZq7F9XHI9FfCtVBmUqZxY5o0y/FHUj6VEc+sUGEjsnkNXeTIC1wqe1jA5Q= X-Received: by 2002:a81:ae10:0:b0:630:f6b0:6c3d with SMTP id 00721157ae682-6727a97605emr17738827b3.23.1721813364651; Wed, 24 Jul 2024 02:29:24 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <9828b776-660f-44ad-91df-11bea14230a4@app.fastmail.com> In-Reply-To: <9828b776-660f-44ad-91df-11bea14230a4@app.fastmail.com> Date: Wed, 24 Jul 2024 02:29:15 -0700 Message-ID: Subject: Re: [PHP-DEV] tsrm question To: Rob Landers Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000f83f37061dfae907" From: sarkedev@gmail.com (Peter Stalman) --000000000000f83f37061dfae907 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jul 24, 2024 at 1:15=E2=80=AFAM Rob Landers wro= te: > Hello internals, > > Last night I went down a rabbit hole with Frankenphp: > https://github.com/dunglas/frankenphp/pull/933 > > It isn't 100% clear to me what values `ts_resource(id)` holds and if it > needs to be freed/allocated per request or per thread. The performance > impact is huge to reallocate on every request (mostly due to the global > mutex during allocation). Is anyone familiar with this and could help > reviewing the changes there? > > =E2=80=94 Rob > Interesting results. Joe Watkins (krakjoe) would be a good person to ask, he's worked on that and he also did pthreads and parallel. But I'm not sure how active he is anymore. Gina Banyard (Girgias) or Niels Dossche (nielsdos) will probably know too. You can try to ping them in https://chat.stackoverflow.com/rooms/11/php Thanks, Peter --000000000000f83f37061dfae907 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Jul 24, 2024 at 1:15=E2=80=AFAM R= ob Landers <rob@bottled.codes> wrote:
Hello internals,

Last night I went down a rabbit hole with Frankenphp:=C2=A0https://= github.com/dunglas/frankenphp/pull/933

It = isn't 100% clear to me what values `ts_resource(id)` holds and if it ne= eds to be freed/allocated per request or per thread. The performance impact= is huge to reallocate on every request (mostly due to the global mutex dur= ing allocation). Is anyone familiar with this and could help reviewing the = changes there?

=E2=80=94 Rob

I= nteresting results.

Joe Watkins (krakjoe) would be= a good person to ask, he's worked on that and he also did pthreads and= parallel. But I'm not sure how active he is anymore.=C2=A0 Gina Banyar= d (Girgias) or Niels Dossche (nielsdos) will probably know too.
<= br>
You can try to ping them in=C2=A0https://chat.stackoverflow.com/rooms/11/php=

Thanks,
Peter

--000000000000f83f37061dfae907--