summaryrefslogtreecommitdiff
path: root/spec/models/environment_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-08-03 21:00:20 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-08-03 22:48:51 -0400
commit01dc8e6d66598c42edb58e35c7da79c3b4cad425 (patch)
treeee278634a4b7a1107f2a9830eb5c45129d2866e7 /spec/models/environment_spec.rb
parent93e96c3fcf30c476df332a7e5e762134ffb5da3e (diff)
downloadgitlab-ce-rs-minor-banzai-perf.tar.gz
Don't bother going through an entire Banzai pipeline for empty textrs-minor-banzai-perf
This bails out of `cacheless_render` immediately unless the provided text is present, since there's no point. This is a slight improvement in our test performance. Across the creation of 1,000 `Namespace` records, which caches the `description` field and which is blank by default in its factory, this saves about four seconds, which... sure. Why not.
Diffstat (limited to 'spec/models/environment_spec.rb')
0 files changed, 0 insertions, 0 deletions