Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124565 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 3B5861A00B7 for ; Wed, 24 Jul 2024 08:14:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721808938; bh=OQPqK1fLT5810JxCO11UQULSw+tcR5T+IHg0y8YI0rA=; h=Date:From:To:Subject:From; b=BoptUcjorvG4c2zNKl7iN6fDAVoGQvd0CwzyAuoU8q66qum6FIJrUCW5FH6sfz0NB J/j5IvafYF3PSlmDpYyf2q7d1op0aZHhjGzzwcHTWTyq0VmFiNswC2G9Qc3ahnmcrH d2FDLggrZ0qwG0NmtkC8ogTZEeqFR7nUWKGoikhogOryOtvGI/ymCgFluRlTyIe/KA 7iOCIoofdQ85swaoCQLUPL1dZds5SL+V3VWUykWa3Tyzu26eaCjJqf3p24Cqn4Q3iO c5ZBckgcVrZxb5iWUyGDriJe+kHM5j65bZiUCZk/73+7/OQifNiPMEsDTnRH9f3VBx YdsLd4c3gFeiw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E4D9A18003F for ; Wed, 24 Jul 2024 08:15:36 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh8-smtp.messagingengine.com (fhigh8-smtp.messagingengine.com [103.168.172.159]) (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 08:15:36 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 82A0C11400E6 for ; Wed, 24 Jul 2024 04:14:01 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute3.internal (MEProxy); Wed, 24 Jul 2024 04:14:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1721808841; x=1721895241; bh=OQPqK1fLT5810JxCO11UQULSw+tcR5T+ IHg0y8YI0rA=; b=r+Ezpi7KALk/p3ZlMRjVLL8ha8e/m6mL5YWN0F7+mYlRY9A4 LNzwWUa2SubFH5MR+nfsjwrHE0npVgz4BctO/aPoG0QQtoMsYitQlkQ+Ygc1ijOU ae4zrljnQtx0vvcQJgrSCcibRp6pmD7WIJzptCGMScBO0MrMXY2ExZrGaGNipOt4 d77MM+FP7z0HME51PyqziIqlVqejCWOk7HGFXQEQCXNbvE47bmGQjIwlRTL/8bn+ hSolMtRTkcrgJvSWMMysSP2Id62bqhvX2nFXePOD5T5qdV+05fv8pTklN3myh3Fu 92O3ihDrxU3mobwwCR1R9cssTq4rdALsl9cWtQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1721808841; x=1721895241; bh=OQPqK1fLT5810JxCO11UQULSw+tcR5T+IHg 0y8YI0rA=; b=rDZxPPtgOtgcuqTnGjaGIkI7Fa4fXdQq5SbAacPJriIQIb0yhtO Xp+TRUyr9Kwt4Qhib5bvlBxTkh7z8yt6+qr6uDx2D5kpjndj94hPWFO+LZ0LLaCK +0FJYfKgWv9oTmuYlTLcZR/nqzoeJiKoBTCEKM1dJpB/hMGpTIkHSSg9aRWHnAEl pbdY9CWCFVopYxRs3jDbsdwEbAy/m3CijsvK7QqLwh9uQFpMx/dLNAwx0JWj3hh5 8x2n1cWYS2cX//ZBdurOT6JOtBFTBYsw7FV0YZYYhowqN2RHqWFZxJbUs1ZHWEPJ iwCQtV0vcjUfoqP9m7xpUMggbuyctutUpFg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddriedugddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesrgdtreerre erjeenucfhrhhomhepfdftohgsucfnrghnuggvrhhsfdcuoehrohgssegsohhtthhlvggu rdgtohguvghsqeenucggtffrrghtthgvrhhnpedvjeeiveetfefgvdejveeiteeftdeuff ejkefhgfekffettefgfeevjeegkeefjeenucffohhmrghinhepghhithhhuhgsrdgtohhm necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhhosg essghothhtlhgvugdrtghouggvshdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 280EC15A0092; Wed, 24 Jul 2024 04:14:01 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-582-g5a02f8850-fm-20240719.002-g5a02f885 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Message-ID: <9828b776-660f-44ad-91df-11bea14230a4@app.fastmail.com> Date: Wed, 24 Jul 2024 10:13:39 +0200 To: internals@lists.php.net Subject: [PHP-DEV] tsrm question Content-Type: multipart/alternative; boundary=7d799e59c1ac40848176c1f689273201 From: rob@bottled.codes ("Rob Landers") --7d799e59c1ac40848176c1f689273201 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 i= mpact is huge to reallocate on every request (mostly due to the global m= utex during allocation). Is anyone familiar with this and could help rev= iewing the changes there? =E2=80=94 Rob --7d799e59c1ac40848176c1f689273201 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
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)` hol= ds 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 c= ould help reviewing the changes there?

=E2=80=94 Rob
--7d799e59c1ac40848176c1f689273201--