gitlab-org--gitlab-foss/spec
Yorick Peterse 905f8d763a
Reduce instrumentation overhead
This reduces the overhead of the method instrumentation code primarily
by reducing the number of method calls. There are also some other small
optimisations such as not casting timing values to Floats (there's no
particular need for this), using Symbols for method call metric names,
and reducing the number of Hash lookups for instrumented methods.

The exact impact depends on the code being executed. For example, for a
method that's only called once the difference won't be very noticeable.
However, for methods that are called many times the difference can be
more significant.

For example, the loading time of a large commit
(nrclark/dummy_project@81ebdea5df)
was reduced from around 19 seconds to around 15 seconds using these
changes.
2016-07-28 16:56:17 +02:00
..
config
controllers Merge branch 'akismet-ui-check' into 'master' 2016-07-27 19:36:43 +00:00
factories Tests refactoring for trigger variables 2016-07-26 11:19:40 +02:00
features Fix Project#to_param to keep invalid project suitable for use in URLs 2016-07-27 13:52:45 -03:00
finders Ensure relative paths for video are rewritten as we do for images 2016-07-26 10:22:17 +02:00
fixtures Merge branch 'discussion-model' into 'master' 2016-07-21 17:56:23 +00:00
helpers Optimize maximum user access level lookup in loading of notes 2016-07-26 15:33:05 -07:00
initializers Ignore invalid trusted proxies in X-Forwarded-For header 2016-07-23 21:06:19 -07:00
javascripts ES6ify all the things! 2016-07-24 23:45:11 +03:00
lib Reduce instrumentation overhead 2016-07-28 16:56:17 +02:00
mailers Make Notify specs more robust by setting up assignee names 2016-07-22 13:54:12 +02:00
models Fix Project#to_param to keep invalid project suitable for use in URLs 2016-07-27 13:52:45 -03:00
requests Submit all issues on public projects to Akismet if enabled. 2016-07-26 15:17:52 -05:00
routing Clean up unused routes 2016-07-26 12:06:42 +02:00
services Fix Project#to_param to keep invalid project suitable for use in URLs 2016-07-27 13:52:45 -03:00
support Ensure relative paths for video are rewritten as we do for images 2016-07-26 10:22:17 +02:00
tasks/gitlab Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
uploaders Remove VideoJS and clean the integration 2016-07-20 11:36:42 +02:00
views Fix tests 2016-07-26 11:19:40 +02:00
workers Fix a bug where forking a project from a repository storage to another would fail 2016-07-26 17:22:13 -04:00
factories_spec.rb
rails_helper.rb
simplecov_env.rb Introduce SimpleCovEnv singleton helper and use it 2016-07-21 12:46:49 +02:00
spec_helper.rb Introduce SimpleCovEnv singleton helper and use it 2016-07-21 12:46:49 +02:00
teaspoon_env.rb