mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08:00
DEV: add routes_lazy_route to boost boot-up time (#14545)
The lazy route initialization cuts down boot time of rails. On my local system it cuts out 200ms of boot time taking me from 3.2 to 3 seconds. This is not a radically enormous amount of time, but paper cuts add up, and a faster boot in dev will make everyone happy. TBD if we want to also include this in production. Gem is heavily maintained by @amatsuda, last commit 3 days ago.
This commit is contained in:
parent
0301b775a8
commit
f5cf647e57
1
Gemfile
1
Gemfile
|
@ -151,6 +151,7 @@ group :test do
|
|||
end
|
||||
|
||||
group :test, :development do
|
||||
gem 'routes_lazy_routes'
|
||||
gem 'rspec'
|
||||
gem 'mock_redis'
|
||||
gem 'listen', require: false
|
||||
|
|
|
@ -352,6 +352,9 @@ GEM
|
|||
rexml (3.2.5)
|
||||
rinku (2.0.6)
|
||||
rotp (6.2.0)
|
||||
routes_lazy_routes (0.4.1)
|
||||
actionpack
|
||||
railties
|
||||
rqrcode (2.1.0)
|
||||
chunky_png (~> 1.0)
|
||||
rqrcode_core (~> 1.0)
|
||||
|
@ -578,6 +581,7 @@ DEPENDENCIES
|
|||
redis-namespace
|
||||
rinku
|
||||
rotp
|
||||
routes_lazy_routes
|
||||
rqrcode
|
||||
rspec
|
||||
rspec-html-matchers
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'sidekiq/api'
|
||||
|
||||
module Jobs
|
||||
|
||||
def self.queued
|
||||
|
|
Loading…
Reference in New Issue
Block a user