php / php/php-src

Ability to disable tmp caching of phar contents

オープン
#13,055 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Extension: phar Feature Status: Needs Triage
主要言語
C
スター
40.4k
フォーク
8.1k
平均マージ
2日 13時間
マージ済み PR(30日)
96

説明

Description

It's not clear to me what the point of caching phar contents is. In a world where opcache is used, it shouldn't be necessary to cache the phar contents anyway, except perhaps the occasional data file.

In addition, since different threads / processes don't share phar caches, /tmp can get very crowded with lots of files caching near-identical data.

I maintain a long-running application in which autoload time is not a concern, but the hogging of tmp space is a problem for my users. There doesn't seem to be a way to stop ext-phar from caching things read from phars.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、opcache のコンテキストを念頭に置きながら、ext-phar による phar-content のキャッシュと /tmp の使用箇所を追跡します。必要な phar の読み取りに影響を与えずにそのキャッシュを無効化する方法を確認してください。この issue にはファイル名もテストも記載されていないため、関連するエントリーポイントを見つけることも作業の一部です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
c, php
領域
backend, performance
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。