Problem/Motivation
| Function Name | Calls | Calls% | Incl. Wall Time (microsec) |
IWall% | Incl. MemUse (bytes) |
IMemUse% | Incl. PeakMemUse (bytes) |
IPeakMemUse% |
|---|---|---|---|---|---|---|---|---|
| Current Function | ||||||||
| Drupal\views\Routing\ViewPageController::create | 1 | 8.3% | 434 | 0.5% | 119,512 | 0.7% | 46,816 | 0.3% |
| Exclusive Metrics for Current Function | 8 | 1.8% | 1,760 | 1.5% | 192 | 0.4% | ||
| Parent function | ||||||||
| Drupal\Core\DependencyInjection\ClassResolver::getInstanceFromDefinition | 1 | 100.0% | 434 | 100.0% | 119,512 | 100.0% | 46,816 | 100.0% |
| Child functions | ||||||||
| Symfony\Component\DependencyInjection\Container::get | 2 | 50.0% | 306 | 70.5% | 40,480 | 33.9% | 45,288 | 96.7% |
| Drupal\Core\Entity\EntityManager::getStorage | 1 | 25.0% | 119 | 27.4% | 76,576 | 64.1% | 1,336 | 2.9% |
| Drupal\views\Routing\ViewPageController::__construct | 1 | 25.0% | 1 | 0.2% | 696 | 0.6% | 0 | 0.0% |
ViewPageController gets the entity storage of the view without doing anything with it
Proposed resolution
Get rid of $storage, $executableFactory, __construct, create as well as adapt parts of the ViewPageControllerTest
Remaining tasks
User interface changes
API changes
Data model changes
Beta phase evaluation
| Issue category | Task because it improves performance a bit |
|---|---|
| Issue priority | Normal because the impact is not that high. |
| Disruption | No disruption |
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | interdiff-3-8.txt | 2.01 KB | martin107 |
| #8 | viewPage-2541084-8.patch | 4.96 KB | martin107 |
| #3 | viewPage-2541084-1.patch | 4.49 KB | martin107 |
Comments
Comment #1
martin107 commentedI am working on this now.
Comment #2
joshi.rohit100So fast :)
Comment #3
martin107 commentedStripped out code,
ViewPageControllerTest passes locally after the changes.
To be honest I would be surprised if there were no other failing tests, so I will leave this assigned to me and will jump on any failures.
Comment #4
dawehnerNice work!
Comment #5
martin107 commentedOh well the only jumping I will be doing today is on a suitcase...
Comment #6
wim leersNice clean-up :)
But in doing so, this patch does not clean up blank lines that now make sense to remove:
Comment #7
martin107 commentedpounce
Comment #8
martin107 commented1) #6 fixed.
2) I have shamelessly added a out of scope fixup. That is I have removed a redundant use statement from ViewPageControllerTest.php
I hope that is ok - it is a ultra trivial fixup to review. The test still passes locally.
Comment #9
wim leersThat seems fine.
Comment #10
alexpottLet's do less. Committed 0ba8bfe and pushed to 8.0.x. Thanks!