After doing a standard install, enabling locale and making 1 request to the frontpage the next request to the frontpage will make 240 calls to ConfigFactory::get(). With the attached patch this drops to 112 - meaning that there are 229 calls to LocaleTranslation::getStringTranslation(). There is also a massive reduction in calls for logged in users.
Comment | File | Size | Author |
---|---|---|---|
#6 | interdiff.txt | 533 bytes | benjy |
#6 | 2202143_6.patch | 1.92 KB | benjy |
#1 | interdiff.txt | 576 bytes | alexpott |
#1 | 2202143.1.patch | 1.92 KB | alexpott |
d8.config-get-locale.patch | 1.92 KB | alexpott | |
Comments
Comment #1
alexpottFixed typo
Comment #2
Gábor HojtsyThe change looks good. The setting is more meaning we SHOULD translate English (from a code point of view it means we *need* to look up the translation in case it is there). From a user point of view, it is indeed about CAN translate English. Anyway, this is minor nitpicking since the patch looks good :)
Comment #3
vijaycs85very minor: unset($this->translateEnglish); would be much better as this is a bool property and we are trying to reset it.
Comment #4
Gábor HojtsyNeeds work on the above, but mostly looks good :)
Comment #5
Gábor HojtsyComment #6
benjy CreditAttribution: benjy commentedRe-rolled with #3 fixed.
Comment #8
benjy CreditAttribution: benjy commented6: 2202143_6.patch queued for re-testing.
Comment #9
benjy CreditAttribution: benjy commentedComment #10
vijaycs85looks good.
Comment #11
YesCT CreditAttribution: YesCT commented6: 2202143_6.patch queued for re-testing.
Comment #12
webchickYay, performance!
Committed and pushed to 8.x. Thanks!
Comment #13
Gábor HojtsyYay, thanks!