Commit d4680f1
committed
ACPT-961: Improve Config readData() (when config cache is clean)
* using str_contains ahead of time (so we don't have to call the methods or run regex when we know it wouldn't match) (about 5-10% faster)
* using array_walk_recursive which is a lot easier to read and is 5-10% faster
* caching environmental variables config (we don't need to reload environment variables for each website)1 parent 1c874bd commit d4680f1
File tree
2 files changed
+35
-33
lines changed- app/code/Magento
- Config/App/Config/Source
- Store/Model/Config
2 files changed
+35
-33
lines changedLines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
36 | 50 | | |
37 | 51 | | |
38 | 52 | | |
| |||
57 | 71 | | |
58 | 72 | | |
59 | 73 | | |
| 74 | + | |
| 75 | + | |
60 | 76 | | |
61 | 77 | | |
62 | 78 | | |
63 | 79 | | |
64 | 80 | | |
65 | 81 | | |
66 | | - | |
| 82 | + | |
67 | 83 | | |
68 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
69 | 88 | | |
70 | 89 | | |
71 | 90 | | |
72 | 91 | | |
73 | | - | |
74 | 92 | | |
75 | 93 | | |
76 | 94 | | |
77 | 95 | | |
78 | 96 | | |
79 | 97 | | |
80 | | - | |
| 98 | + | |
| 99 | + | |
81 | 100 | | |
82 | 101 | | |
83 | 102 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
77 | 58 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
81 | 62 | | |
82 | 63 | | |
83 | 64 | | |
84 | 65 | | |
85 | 66 | | |
86 | 67 | | |
87 | 68 | | |
| 69 | + | |
88 | 70 | | |
89 | 71 | | |
90 | 72 | | |
| |||
179 | 161 | | |
180 | 162 | | |
181 | 163 | | |
| 164 | + | |
182 | 165 | | |
183 | 166 | | |
184 | 167 | | |
| |||
187 | 170 | | |
188 | 171 | | |
189 | 172 | | |
190 | | - | |
| 173 | + | |
191 | 174 | | |
192 | 175 | | |
193 | 176 | | |
| |||
0 commit comments