phpinsights: Suggestion to fix "If you encounter the error Allowed memory size of XXXXX bytes exhausted" error

If you encounter the error Allowed memory size of XXXXX bytes exhausted, the current workaround is to increase the memory limit:

While reading the docs, I saw this statement and it was something I ran into pretty quickly when adding insights my projects.

I’m only making a suggestion as I have not had the time to make a clone of the repo to see if it is possible. But, I was thinking, this might be a good use for PHP Generators. They make memory management in PHP tolerable when dealing with large data.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

@sierrafayad Currently we don’t touch memory limit in the code.

@kayandra I like the idea of trying to use generators in more places. Might help us save some memory around the system.

Well idk 😅 hahaha. Is there any possibility of some memory_limit being set somewhere in the code? I’m out of options.