summaryrefslogtreecommitdiff
path: root/lib/api/variables.rb
diff options
context:
space:
mode:
authorDrew Blessing <drew@blessing.io>2018-10-17 20:03:15 -0400
committerDrew Blessing <drew@blessing.io>2018-10-31 15:50:30 -0500
commit409f2f4dd2888f88df2293466c37c768b94068e5 (patch)
treec8061f8135e6657d7a7185f0f56e5757b4c5f0a0 /lib/api/variables.rb
parent43463869c883c7972ecc03500ab35325eede7a01 (diff)
downloadgitlab-ce-409f2f4dd2888f88df2293466c37c768b94068e5.tar.gz
Improve performance of tree rendering in repositories with lots of items
Rails is slow to generate paths dynamically especially when called hundreds/thousands of times. Also, rendering many partials hundreds of times can be slower. This change reduces the number of partials rendered and introduces two fast path methods to speed up path generation.
Diffstat (limited to 'lib/api/variables.rb')
0 files changed, 0 insertions, 0 deletions