Use promphp/prometheus_client_php version 2.7.1 and APCng
I am use histograms with name 'sdui_component_time_generation_bucket' and labels 'component', 'state_id'
Components count is 100
State_id count is 100
Total number of variants 100 * 100 = 10 000
Generated ~ 128 777 rows for histograms
And for response with 15.1 MB
PHP use 156 MB
I think it is because all metrics collect to one array
\Prometheus\Storage\APCng::collect
And all samples in one array
\Prometheus\Storage\APCng::collectHistograms
Use promphp/prometheus_client_php version 2.7.1 and APCng
I am use histograms with name 'sdui_component_time_generation_bucket' and labels 'component', 'state_id'
Components count is 100
State_id count is 100
Total number of variants 100 * 100 = 10 000
Generated ~ 128 777 rows for histograms
And for response with 15.1 MB
![image](https://github.com/PromPHP/prometheus_client_php/assets/20963384/c2dadbbb-b5ca-4214-9260-a355dfbf5928)
PHP use 156 MB![image](https://github.com/PromPHP/prometheus_client_php/assets/20963384/73c13043-d7f5-479c-8a40-877eca75e265)
I think it is because all metrics collect to one array \Prometheus\Storage\APCng::collect![image](https://github.com/PromPHP/prometheus_client_php/assets/20963384/4eb7b286-aafd-4c0d-adf3-b798e29079b9)
And all samples in one array \Prometheus\Storage\APCng::collectHistograms![image](https://github.com/PromPHP/prometheus_client_php/assets/20963384/0bf4b618-714d-4c7e-8c57-24582d0c6ce4)
I think solution it is use php generator