diff --git a/core/modules/comment/lib/Drupal/comment/CommentRenderController.php b/core/modules/comment/lib/Drupal/comment/CommentRenderController.php
index bc21cd2..a0bd904 100644
--- a/core/modules/comment/lib/Drupal/comment/CommentRenderController.php
+++ b/core/modules/comment/lib/Drupal/comment/CommentRenderController.php
@@ -32,8 +32,15 @@ public function buildContent(array $entities = array(), $view_mode = 'full', $la
 
     parent::buildContent($entities, $view_mode, $langcode);
 
+    // Load all nodes of all comments at once.
+    $nids = array();
     foreach ($entities as $entity) {
-      $node = node_load($entity->nid);
+      $nids[$entity->nid] = $entity->nid;
+    }
+    $nodes = node_load_multiple($nids);
+
+    foreach ($entities as $entity) {
+      $node = $nodes[$entity->nid];
       if (!$node) {
         throw new \InvalidArgumentException(t('Invalid node for comment.'));
       }
