From 0f94402b7e8b7e25ee605f830b7c7becbe78ba8b Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 29 Feb 2020 18:19:09 +0100 Subject: Better performance with yield (#2588) * Better performance with yield Largely decrease the time to first byte, and reduced memory consumtion. Before, we used to make several copies in memory of the whole list of articles before sending them to the client. Now streamed as they are processed. * Travis --- cli/README.md | 2 +- cli/_update-or-create-user.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'cli') diff --git a/cli/README.md b/cli/README.md index 4ef665e69..b4112bf63 100644 --- a/cli/README.md +++ b/cli/README.md @@ -47,7 +47,7 @@ cd /usr/share/FreshRSS ./cli/reconfigure.php # Same parameters as for do-install.php. Used to update an existing installation. -./cli/create-user.php --user username [ --password 'password' --api_password 'api_password' --language en --email user@example.net --token 'longRandomString' --no_default_feeds --purge_after_months 3 --feed_min_articles_default 50 --feed_ttl_default 3600 --since_hours_posts_per_rss 168 --min_posts_per_rss 2 --max_posts_per_rss 400 ] +./cli/create-user.php --user username [ --password 'password' --api_password 'api_password' --language en --email user@example.net --token 'longRandomString' --no_default_feeds --purge_after_months 3 --feed_min_articles_default 50 --feed_ttl_default 3600 --since_hours_posts_per_rss 168 --max_posts_per_rss 400 ] # --language can be: 'en' (default), 'fr', or one of the [supported languages](../app/i18n/) ./cli/update-user.php --user username [ ... ] diff --git a/cli/_update-or-create-user.php b/cli/_update-or-create-user.php index 3217a07ea..0da9963f0 100644 --- a/cli/_update-or-create-user.php +++ b/cli/_update-or-create-user.php @@ -11,7 +11,6 @@ $params = array( 'feed_min_articles_default:', 'feed_ttl_default:', 'since_hours_posts_per_rss:', - 'min_posts_per_rss:', 'max_posts_per_rss:', ); @@ -27,7 +26,7 @@ if (!validateOptions($argv, $params) || empty($options['user'])) { " --language en --email user@example.net --token 'longRandomString'" . ($isUpdate ? '' : '--no_default_feeds') . " --purge_after_months 3 --feed_min_articles_default 50 --feed_ttl_default 3600" . - " --since_hours_posts_per_rss 168 --min_posts_per_rss 2 --max_posts_per_rss 400 )"); + " --since_hours_posts_per_rss 168 --max_posts_per_rss 400 )"); } function strParam($name) { @@ -48,7 +47,6 @@ $values = array( 'keep_history_default' => intParam('feed_min_articles_default'), //TODO: Update with new mechanism 'ttl_default' => intParam('feed_ttl_default'), 'since_hours_posts_per_rss' => intParam('since_hours_posts_per_rss'), - 'min_posts_per_rss' => intParam('min_posts_per_rss'), 'max_posts_per_rss' => intParam('max_posts_per_rss'), ); -- cgit v1.2.3