Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,8 @@ Lint/EmptyWhen:
Style/FormatStringToken:
EnforcedStyle: unannotated

Bundler/OrderedGems:
Enabled: false

Layout/EmptyLineAfterGuardClause:
Enabled: false
9 changes: 9 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
更新履歴 - ChangeLog
====================

3.3.1: 2018/xx/xx
------------------
#### 追加機能
- 起動速度を向上させる Bootsnap を利用できるようにしました
- gem install bootsnap を実行し、環境変数 NAROU_ENABLE_BOOTSNAP に真を設定
すると有効になります。(※Bootsnap は Windows では動作しません)
- 約20%くらい起動速度が速くなります


3.3.0: 2018/xx/xx
------------------
#### 追加機能
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ gem "better_errors"
gem "binding_of_caller"
gem "awesome_print"
gem "simplecov", require: false, group: :test
gem "bootsnap", require: false
9 changes: 9 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ GEM
rack (>= 0.9.0)
binding_of_caller (0.8.0)
debug_inspector (>= 0.0.1)
bootsnap (1.3.2)
msgpack (~> 1.0)
bootsnap (1.3.2-java)
msgpack (~> 1.0)
byebug (10.0.2)
coderay (1.1.2)
concurrent-ruby (1.0.5)
concurrent-ruby (1.0.5-java)
debug_inspector (0.0.3)
diff-lcs (1.3)
docile (1.3.1)
Expand All @@ -59,6 +64,8 @@ GEM
mime-types-data (~> 3.2015)
mime-types-data (3.2018.0812)
minitest (5.11.3)
msgpack (1.2.4)
msgpack (1.2.4-java)
multi_json (1.13.1)
open_uri_redirections (0.2.1)
pony (1.12)
Expand Down Expand Up @@ -125,6 +132,7 @@ GEM
systemu (2.6.5)
termcolorlight (1.1.1)
thread_safe (0.3.6)
thread_safe (0.3.6-java)
tilt (2.0.8)
timecop (0.9.1)
tzinfo (1.2.5)
Expand All @@ -139,6 +147,7 @@ DEPENDENCIES
awesome_print
better_errors
binding_of_caller
bootsnap
narou!
pry
pry-byebug
Expand Down
14 changes: 14 additions & 0 deletions config/bootsnap_setup.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

if ENV["NAROU_ENABLE_BOOTSNAP"]
require "bootsnap"
Bootsnap.setup(
cache_dir: "tmp/cache",
development_mode: false,
load_path_cache: true,
autoload_paths_cache: false,
disable_trace: false,
compile_cache_iseq: true,
compile_cache_yaml: true
)
end
1 change: 0 additions & 1 deletion narou.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,3 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency 'activesupport', '~> 5.2'
gem.add_runtime_dependency 'unicode-display_width', '~> 1.4'
end

2 changes: 2 additions & 0 deletions narou.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# Copyright 2013 whiteleaf. All rights reserved.
#

require_relative "config/bootsnap_setup"

require_relative "lib/extension"
require_relative "lib/extensions/monkey_patches"
require_relative "lib/backtracer"
Expand Down