denzyldick / phanalist

Performant static analyzer for PHP, which is extremely easy to use. It helps you catch common mistakes in your PHP code.
https://denzyldick.github.io/phanalist/
MIT License
131 stars 5 forks source link

Feat optimizations #32

Closed SerheyDolgushev closed 8 months ago

SerheyDolgushev commented 8 months ago

Before this changes:

...
Analysed 1448 files in 1.64s, memory usage: 984.6 MiB
...
Analysed 1448 files in 1.64s, memory usage: 942.5 MiB
...
Analysed 1448 files in 1.65s, memory usage: 1 GiB

After the changes:

...
Analysed 1448 files in 865.66ms, memory usage: 588.7 MiB
...
Analysed 1448 files in 885.43ms, memory usage: 560.3 MiB
...
Analysed 1448 files in 858.35ms, memory usage: 565.5 MiB