gitlab-org--gitlab-foss/lib
Paco Guzman b5fa56eb3f Unused got variable with very bad performance
In any case if just want the value which is always ‘gitlab’

require 'benchmark/ips'

Project.first # To load database things
GitlabIssueTrackerService.first # To load database things

Benchmark.ips do |x|
  x.config(:time => 5, :warmup => 2)

  x.report("current") do
    Project.new.default_issue_tracker.to_param
  end

  x.report("") do
    'gitlab'
  end

  x.compare!
end

Calculating -------------------------------------
             current     4.000  i/100ms
                        30.938k i/100ms
-------------------------------------------------
             current     47.298  (±10.6%) i/s -    232.000 
                          4.366M (±20.9%) i/s -     17.202M

Comparison:
                    :  4366456.0 i/s
             current:       47.3 i/s - 92318.26x slower
2016-06-28 17:01:37 +02:00
..
api Rename Licenses API to License Templates API 2016-06-27 14:42:05 -05:00
assets
backup Only create the backup directory if it is local 2016-06-10 10:17:54 -07:00
banzai Wrap images in divs with Banzai and limit max-height. 2016-06-27 09:16:07 -06:00
ci Merge branch 'refactor/ci-config-add-entry-error' into 'master' 2016-06-27 08:24:17 +00:00
container_registry Show proper image ID on registry page 2016-06-21 13:08:10 +02:00
gitlab Unused got variable with very bad performance 2016-06-28 17:01:37 +02:00
json_web_token Revert "Fix merge conflicts - squashed commit" 2016-06-03 11:10:17 +02:00
omni_auth
rouge/formatters
support Revert "Fix merge conflicts - squashed commit" 2016-06-03 11:10:17 +02:00
tasks added nice to have - rake task and some changes to docs 2016-06-21 19:23:21 +02:00
banzai.rb Move pre_process into render_result 2016-06-21 17:39:01 +02:00
disable_email_interceptor.rb
event_filter.rb Revert "Fix merge conflicts - squashed commit" 2016-06-03 11:10:17 +02:00
extracts_path.rb
file_size_validator.rb Get rid of more requires, which causes warnings when code is reloaded 2016-04-19 11:48:10 +02:00
file_streamer.rb
gitlab.rb Revert "Fix merge conflicts - squashed commit" 2016-06-03 11:10:17 +02:00
gt_one_coercion.rb
repository_cache.rb
static_model.rb
unfold_form.rb
uploaded_file.rb
version_check.rb