Skip to content
Merged
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
8 changes: 8 additions & 0 deletions benchmark/string_downcase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ prelude: |
nonascii10 = nonascii1 * 10
nonascii100 = nonascii10 * 10
nonascii1000 = nonascii100 * 10
ascii8bit256 = (0..255).to_a.pack("C*")
ascii8bit2560 = ascii8bit256 * 10
ascii8bit25600 = ascii8bit2560 * 10
ascii8bit256000 = ascii8bit25600 * 10
benchmark:
downcase-1: str1.upcase
downcase-10: str10.upcase
Expand All @@ -16,3 +20,7 @@ benchmark:
downcase-nonascii10: nonascii10.downcase
downcase-nonascii100: nonascii100.downcase
downcase-nonascii1000: nonascii1000.downcase
downcase-ascii8bit-256: ascii8bit256.downcase
downcase-ascii8bit-2560: ascii8bit2560.downcase
downcase-ascii8bit-25600: ascii8bit25600.downcase
downcase-ascii8bit-256000: ascii8bit256000.downcase
8 changes: 8 additions & 0 deletions benchmark/string_upcase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ prelude: |
nonascii10 = nonascii1 * 10
nonascii100 = nonascii10 * 10
nonascii1000 = nonascii100 * 10
ascii8bit256 = (0..255).to_a.pack("C*")
ascii8bit2560 = ascii8bit256 * 10
ascii8bit25600 = ascii8bit2560 * 10
ascii8bit256000 = ascii8bit25600 * 10
benchmark:
upcase-1: str1.upcase
upcase-10: str10.upcase
Expand All @@ -16,3 +20,7 @@ benchmark:
upcase-nonascii10: nonascii10.upcase
upcase-nonascii100: nonascii100.upcase
upcase-nonascii1000: nonascii1000.upcase
upcase-ascii8bit-256: ascii8bit256.upcase
upcase-ascii8bit-2560: ascii8bit2560.upcase
upcase-ascii8bit-25600: ascii8bit25600.upcase
upcase-ascii8bit-256000: ascii8bit256000.upcase
4 changes: 2 additions & 2 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1585,10 +1585,10 @@ no-test-bundled-gems-precheck:
yes-update-default-gemspecs no-update-default-gemspecs: update-default-gemspecs
update-default-gemspecs: $(PREP) $(RBCONFIG)
@$(MAKEDIRS) $(srcdir)/.bundle/specifications
$(Q)$(MINIRUBY) -W0 -C "$(srcdir)" -I tool/lib -roptparse -routput -rbundled_gem \
$(Q)$(MINIRUBY) -W0 -I "$(srcdir)/tool/lib" -roptparse -routput -rbundled_gem \
-e "(out = Output.new).def_options(ARGV.options)" \
-e "BundledGem.update_default_gemspecs(ARGV.parse!, out, quiet: $(V).zero?)" \
-- -c -o .bundle/specifications lib ext
-- -c -o "$(srcdir)/.bundle/specifications" "$(srcdir)/lib" "$(srcdir)/ext"

install-for-test-bundled-gems: $(TEST_RUNNABLE)-install-for-test-bundled-gems
no-install-for-test-bundled-gems: no-update-default-gemspecs
Expand Down
2 changes: 2 additions & 0 deletions ext/json/parser/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
require 'mkmf'

$defs << "-DJSON_DEBUG" if ENV.fetch("JSON_DEBUG", "0") != "0"
$defs << "-DJSON_WORKAROUND_RB_CATCH_BUG" if RUBY_ENGINE == 'truffleruby'

have_func("rb_enc_interned_str", "ruby/encoding.h") # RUBY_VERSION >= 3.0
have_func("rb_str_to_interned_str", "ruby.h") # RUBY_VERSION >= 3.0
have_func("rb_hash_new_capa", "ruby.h") # RUBY_VERSION >= 3.2
Expand Down
Loading