79dd92c818
String#underscore isn't particularly slow, but it's possible for us to call it many times in a users autocomplete request, with mostly-static values ('User', 'Group', etc.). We can memoise this and save a surprising amount of time (around 10% of the total request time in some cases).
5 lines
125 B
YAML
5 lines
125 B
YAML
---
|
|
title: Improve performance of users autocomplete when there are lots of results
|
|
merge_request:
|
|
author:
|
|
type: performance
|