Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126158 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 25B7D1A00BD for ; Sat, 21 Dec 2024 20:18:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1734812128; bh=ZvcAJftYjym2x7HozebfWzl7pNUEg4NdQ7tRMr8kqzg=; h=From:To:References:In-Reply-To:Subject:Date:From; b=EL/95WEwJr56gVSkajd/QPW3FTonhQHUCfv00Ze3xiYptz4pBWwiGa/TyEpPDf0uO p2nNrcsN8mz7wk3J8xOrC6HcMBY79lmK9Zp/H4W7u6Yh5WbuPpEasn8266j4Q5BOJ8 1TxyMXuFcLcOXnHHm77OwFxOnWv655GBwRR5H77GTgavHWjNye+TerJXDypv+eC1Ay PDYMI+UiEbCsov2PPaxAN2X2tDEDyhoSyY/9I41KrPiMKZPwzX1aQ/1oBMuXQq2YQa H4rij0KqJmMzIgO/H1DO/6fgQeBuhUklX59z1CVHcRvIfVgrGZuMljGznAB8c4+9jk 8rt8yJMwONAfQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 988A5180052 for ; Sat, 21 Dec 2024 20:15:27 +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=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_PDS_PRO_TLD autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from weasel.tulip.relay.mailchannels.net (weasel.tulip.relay.mailchannels.net [23.83.218.247]) (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 ; Sat, 21 Dec 2024 20:15:26 +0000 (UTC) X-Sender-Id: yszpovajlk|x-authuser|juris@glaive.pro Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 34526901F68; Sat, 21 Dec 2024 20:18:27 +0000 (UTC) Received: from server42.areait.lv (trex-2.trex.outbound.svc.cluster.local [100.103.141.155]) (Authenticated sender: yszpovajlk) by relay.mailchannels.net (Postfix) with ESMTPA id 67710901A62; Sat, 21 Dec 2024 20:18:26 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1734812306; a=rsa-sha256; cv=none; b=0ubm7zv6XFQlj2rbd0ni/gaO7W5OYSrqhd7Zng4T/V0msezx9sft7bLTJc1Ojv05uvX0V+ spGR8vtDmj1Gami4n+6ryynCEgdofb9+DtEYBmdNQ0o7eSJEbvsqwA5SdTSbAO/H9aFK11 YcpJR+Xw9cTNWO2JBAhU2GTHlTexvzjYK0D4x75yia4hI5xNPXcyfF7npRordPiv4EJYON QRDWkwakRA6UYEBC7e4NKQh7CZwsBgxKDcezIwuRxHHRBcMu9M5IcrVxkdx5oMslyUa+ai r/nZGsvqGE7dmVu3ug2IvDCO/33l0Y9VT1sHMyVRyribaIdEPnjm1D4Ks2O5pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1734812306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ZvcAJftYjym2x7HozebfWzl7pNUEg4NdQ7tRMr8kqzg=; b=R2lqLmIETHHwANJrwDwTvGqK4ptFzOQASuJNaL5xkuG7rsjTX/V7SjMx29S4l8sIMmmsEh VJDpUFvGxEp1iP/Ns74JUu1YMpcTIrMym76yiXi8nMzy4+ObWQo7xFgUFal9RCi5cG8Eqd pdmzn98JJ1YtmDU5YW2GsRT9ZCudkSb1jMJzQApQ4KnBKLmxSZ9uMz/D2VxQQ3mc8Kq3/R Q7Djc3xDCBsHeyjf1QnERn89FSSKhZGc/sYmFnQlcD+dYmzY/kuhby5cArdB8rPf96RCw3 HvziAxZnX8MCnHJTmyVE4nQ1DHZ3gjc4+dznJEFoJNvI2YjUHExD7P1Y1hiPHA== ARC-Authentication-Results: i=1; rspamd-7d788bbf85-hrfh2; auth=pass smtp.auth=yszpovajlk smtp.mailfrom=juris@glaive.pro X-Sender-Id: yszpovajlk|x-authuser|juris@glaive.pro X-MC-Relay: Neutral X-MailChannels-SenderId: yszpovajlk|x-authuser|juris@glaive.pro X-MailChannels-Auth-Id: yszpovajlk X-Tank-Unite: 1a0a092948042861_1734812307092_1232369226 X-MC-Loop-Signature: 1734812307092:2799738201 X-MC-Ingress-Time: 1734812307092 Received: from server42.areait.lv (server42.areait.lv [212.7.207.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.103.141.155 (trex/7.0.2); Sat, 21 Dec 2024 20:18:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=glaive.pro; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:In-Reply-To:References:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ZvcAJftYjym2x7HozebfWzl7pNUEg4NdQ7tRMr8kqzg=; b=BaYFGze2Iz/JybNWXB8Drxj2q/ 84LQgd2dp1VuUG46hjKh4qkAUmWvP27daRKh43TgQ92g/tBcy05leOY/CVHT+Wq+DOSUKTQyyX9+W 9hfgrYmxb95obAQ01B3cPG5v7H+oY1TXsbPSa4OgUswUfdMr1bZ6jXw6rNG8yttcKcNS4ixLtE9+G AMArArugeZYD6Ie4AV4IguvmStMBXXzxVxLTUhEEBJGi02GsbwzuDYm7xmCGproPEB4X81CF7GusI aryLAV3JifkjLMphtSYIWudp/Z/I70AzaSTzLR93AuSEMaq9a7lZ0aReCr7KS462bd6XRhqSIisqM M8WwGyCw==; Received: from balticom-29-116.balticom.lv ([77.93.29.116]:64436 helo=LAPTOPHKIOPCGI) by server42.areait.lv with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1tP5vb-000dlb-2X; Sat, 21 Dec 2024 22:18:24 +0200 To: "'Larry Garfield'" , "'php internals'" References: <27531d9d-9bfe-4acc-b9ab-80b1017e3038@app.fastmail.com> In-Reply-To: <27531d9d-9bfe-4acc-b9ab-80b1017e3038@app.fastmail.com> Subject: RE: [PHP-DEV] Discussion: Remove file statcache? Date: Sat, 21 Dec 2024 22:18:22 +0200 Message-ID: <062201db53e5$7c7043f0$7550cbd0$@glaive.pro> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQFhEdNaIKgdVQ4mWrhCBsgInaHp3LPlmt8A Content-Language: lv X-AuthUser: juris@glaive.pro From: juris@glaive.pro ("Juris Evertovskis") While it is nice the Symfony and WordPress wouldn't suffer a lot from dropping this cache, what's the impact on scripts that are processing hundreds of files? Would doing ` $stat = stat($filename);` instead of separate calls to `filemtime` and `filesize` actually be important? Or would it still amount to 1% performance difference on an SSD? I mean, are there cases when this cache is still useful in 2025?