Skip to content

More faster

Choose a tag to compare

@azumakuniyuki azumakuniyuki released this 14 Feb 02:56
· 2108 commits to 5-stable since this release
  • Import commit sisimai/p5-sisimai@8c6eb33, Add status code 4.7.25 (RFC-7372) as "blocked".
  • The following performance improvements makes 1.49 times faster.
    • It makes rb-Sisimai on JRuby 1.16 times faster.
    • #96 String#+ and sprintf replaced with String#<< at Pull-Request #103.
    • #98 loop do replaced with while(true) at Pull-Request #104.
    • #99 String#=~ and regular expressions /\A...\z/, /\A.../ or /...\z/ have been replaced with String#start_with?, String#end_with?, String#include?, Array#include?, or String#== at Pull-Request #105, #107, #108.
    • #102 String#sub(/...\z/, '...') has been replaced with String#chomp, or String#strip, String#lstrip, String#rstrip at Pull-Request #106.
    • Import Pull-Request sisimai/p5-sisimai#258, remove /i modifier from each regular expressions as possible and call String#downcase before matching.
    • Pull-Request #111, Some Array#each have been replaced with Array#shift in while loop.