Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295636

AnnotatedClassDiscovery::getDefinitions is critically slow when viewing nodes with comments

$
0
0

AnnotatedClassDiscovery::getDefinitions takes 8-17 s (!!!) when viewing 50 nodes with up to 4 comments.

XHProf Link:

http://www.lionsad.de/xhprof-kit/xhprof/xhprof_html/?run=51f3790f24ac9&s...

Steps to reproduce

* Install Drupal 8
* drush -y dl devel
* drush -y en devel devel_generate
* Generate 50 nodes with up to 4 comments
* Change the front-page view to show:
** 50 nodes
** Change the row mode plugin to show comments (tick the checkbox)

* Load the frontpage and wait, wait, wait ...

Steps to measure

* Install xhprof-kit (https://github.com/LionsAd/xhprof-kit)
* Goto /index-perf.php
* Follow the xhprof-link at the bottom of the page
* Find the function and look yourself.

Proposed resolution

@todo


Viewing all articles
Browse latest Browse all 295636


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>