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/_update-or-create-user.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cli/_update-or-create-user.php') 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