Performance improvements
- store @participants in variable
- store result of subscribed? call into variable
In total it reduce amount of SQL queries for issue or merge_request with 10 comments/participants almost twice.
In total it reduce amount of SQL queries for issue or merge_request with 10 comments/participants almost twice.