Skip to content

Commit df1fc5e

Browse files
authored
Peer review checklist addition.
Add to performance part of peer review checklist. Inspired by the fact that https://moodle.atlassian.net/browse/MDL-80815 got integrated with seemingly no thought about performance.
1 parent 86f5e25 commit df1fc5e

File tree

1 file changed

+1
-0
lines changed
  • general/development/process/peer-review

1 file changed

+1
-0
lines changed

general/development/process/peer-review/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ Clustering is when the same code is run on different computers and an end user c
140140
Ensure that:
141141

142142
- Any filesystem, database or cache accesses are done in the most efficient way.
143+
- If a change is in a performance critical part of the code (for example the database layer, caching system, locks, SQL query changes ...) then we expect to see some attempt to measure the performance impact of the change reported in a comment in the tracker, or even better verified in the testing instructions. (Good examples: [testing instructions of MDL-82754](https://moodle.atlassian.net/browse/MDL-82754), [this comment in MDL-86601](https://moodle.atlassian.net/browse/MDL-86601?focusedCommentId=1019696); bad example MDL-80815.)
143144
- That any code or function that appear expensive are not in critical paths. eg; They don't load on every page.
144145
- The least possible code is running to complete the task, especially looking for hidden loops. They can appear from calling functions.
145146
- Any code that runs is not specific to a single node. (eg opcache_reset()) This ensures clusters will run correctly.

0 commit comments

Comments
 (0)