61078[BUGFIX] Speed up SiteConfiguration loading
Commit message
Review
-
Code review CR +2 Done
- Benni Mack +2
- Benjamin Franzke +1
- Daniel Goerz +1
-
Verified V +2 Done
- Benni Mack +2
- Benjamin Franzke +1
- Daniel Goerz +1
- TYPO3com +1 CI
Issues 1
Files 4
Review log 1518
-
Benni Mack uploaded patch set 1 06/17/19, 19:39
-
TYPO3com voted on patch set 1 V -1 06/17/19, 19:52 Completed build in 13m 14s on Mon, 17 Jun, 09:52 PM Test Summary: 929 of 46793 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-34403
-
Benjamin Franzke uploaded patch set 2 06/17/19, 21:00
-
Benjamin Franzke commented on patch set 1 06/17/19, 21:00
SiteConfiguration.php:81UnresolvedNot sure if you agree, but we could use a null coalescing operator here, which is supposed to be even faster. (DI implementations use that to get/create cache entries as well, and performance analysis showed that ?? brings improvements). I will prepare that in a new patchset. I'm curious whether your profiling shows any differences with patchset 2 applied. -
Benjamin Franzke voted on patch set 2 V +1 CR +1 06/17/19, 21:01
-
TYPO3com voted on patch set 2 V +1 06/17/19, 21:17 Completed build in 17m 10s on Mon, 17 Jun, 11:17 PM Test Summary: 46440 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-34404
-
Benni Mack commented on patch set 2 06/18/19, 05:10
SiteConfiguration.php:89that's technically breaking, however I don't know how many people rely on calling resolveAllExistingSites(), maybe we should just keep the resolveAllExistingSites public -
Benni Mack commented on patch set 2 06/18/19, 05:10
I think we should also make this possible in v9 btw... -
Benjamin Franzke commented on patch set 2 06/18/19, 06:37
SiteConfiguration.php:89Reply UnresolvedYup, I also thought about that, but as SiteConfiguration class is marked @internal, I thought this would be fine here. BUT: due to your v9 backport thouhts, I understand that this may become frustrating for people that use this class despite being @internal – they may say "It would have been easy to stay non-breaking here". So let's got with public if we intend to backport this patch. -
Benjamin Franzke uploaded patch set 3 06/18/19, 06:57
-
Benjamin Franzke voted on patch set 3 V +1 CR +1 06/18/19, 06:58
-
Jonas Eberle commented on patch set 3 06/18/19, 07:08
SiteConfiguration.php:65I suggest $existingSitesCache or similar for readability. -
TYPO3com voted on patch set 3 V +1 06/18/19, 07:12 Completed build in 14m 20s on Tue, 18 Jun, 09:12 AM Test Summary: 46442 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-34408
-
Benjamin Franzke commented on patch set 3 06/18/19, 07:23
SiteConfiguration.php:65Reply UnresolvedI also thought about another name (e.g. $resolvedSites), but I think $firstLevelCache is the best one in this case: * It becomes very clear, that this cache is intended for performance reasons, which means the someone anlyzing this with memory usage in mind will not be tempted to go over this and say: lets save some memory here and remove this) * This class has pretty much only one task and the generic variable identifier is fine in that case IMO. * We actually have two caches here, where $firstLevelCache is more descriptive than $existingSitesCache – that means we would need $resolvedSitesFirstLevelCache here. As that sucks, let's stick with $firstLevelCache. -
Daniel Goerz voted on patch set 3 CR +1 06/18/19, 14:49
-
Daniel Goerz voted on patch set 3 V +1 06/19/19, 10:58
-
Benni Mack commented on patch set 3 V +2 CR +2 06/19/19, 11:20
Checked with Jonas. All good. Let's continue -
Benni Mack merged patch set 4 06/19/19, 11:20
SiteConfiguration.php:71Unresolved