├── .gitignore ├── .php-version ├── README.md ├── composer.json ├── composer.lock ├── config ├── doctrine │ └── Article.orm.xml └── router.php ├── public ├── index.php └── script.js ├── src ├── Controller │ ├── ArticleListAction.php │ ├── ArticleListOldAction.php │ ├── ArticleListOldIterableAction.php │ ├── ArticleListSymfonyAction.php │ └── StreamedJsonResponse.php ├── Doctrine │ └── EntityManagerFactory.php └── Entity │ └── Article.php └── var ├── memory-usage-old-iterable.txt ├── memory-usage-old.txt ├── memory-usage-symfony.txt ├── memory-usage.txt └── test.sqlite /.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | .idea/ 3 | var/cache/ 4 | -------------------------------------------------------------------------------- /.php-version: -------------------------------------------------------------------------------- 1 | 8.1 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/composer.lock -------------------------------------------------------------------------------- /config/doctrine/Article.orm.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/config/doctrine/Article.orm.xml -------------------------------------------------------------------------------- /config/router.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/config/router.php -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/public/index.php -------------------------------------------------------------------------------- /public/script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/public/script.js -------------------------------------------------------------------------------- /src/Controller/ArticleListAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/src/Controller/ArticleListAction.php -------------------------------------------------------------------------------- /src/Controller/ArticleListOldAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/src/Controller/ArticleListOldAction.php -------------------------------------------------------------------------------- /src/Controller/ArticleListOldIterableAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/src/Controller/ArticleListOldIterableAction.php -------------------------------------------------------------------------------- /src/Controller/ArticleListSymfonyAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/src/Controller/ArticleListSymfonyAction.php -------------------------------------------------------------------------------- /src/Controller/StreamedJsonResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/src/Controller/StreamedJsonResponse.php -------------------------------------------------------------------------------- /src/Doctrine/EntityManagerFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/src/Doctrine/EntityManagerFactory.php -------------------------------------------------------------------------------- /src/Entity/Article.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/src/Entity/Article.php -------------------------------------------------------------------------------- /var/memory-usage-old-iterable.txt: -------------------------------------------------------------------------------- 1 | 62.11 MB 2 | 71.79 MB -------------------------------------------------------------------------------- /var/memory-usage-old.txt: -------------------------------------------------------------------------------- 1 | 64.21 MB 2 | 73.89 MB -------------------------------------------------------------------------------- /var/memory-usage-symfony.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/var/memory-usage-symfony.txt -------------------------------------------------------------------------------- /var/memory-usage.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/var/memory-usage.txt -------------------------------------------------------------------------------- /var/test.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexander-schranz/efficient-json-streaming-with-symfony-doctrine/HEAD/var/test.sqlite --------------------------------------------------------------------------------