Opened 10 years ago
Closed 10 years ago
#38514 closed enhancement (fixed)
Comment form performs a lot of unused logic when not open for comments
| Reported by: | jipmoors | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Comments | Version: | 4.7 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | performance |
Description
The comment_form function performs a lot of data preparation and logic, but when the current object is closed for comments it will not use anything and just trigger an action.
Suggesting to move the check to the start of the function, thus reducing complexity and increasing performance.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I was confused by the diff because everything has been shifted. It looks like a lot of changes but it's just an indentation change.