- 24 Oct, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 23 Oct, 2019 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
Optimize `str_subseq` with `MRB_UTF8_STRING` to ASCII only string
-
KOBAYASHI Shuji authored
### Benchmark (with `MRB_UTF8_STRING`) ```ruby # benchmark.rb COUNT = 300000 SIZE = 10000 s = "a" * SIZE s.size # set `MRB_STR_ASCII` flag i = 0 while i < COUNT s[-1] i += 1 end ``` #### Before this patch: ``` $ time mruby benchmark.rb 2.06 real 2.05 user 0.00 sys ``` #### After this patch: ``` $ time mruby benchmark.rb 0.05 real 0.04 user 0.00 sys ```
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Fix incorrect `MRB_STR_ASCII` flag update in `mrb_str_dump`
-
- 22 Oct, 2019 1 commit
-
-
KOBAYASHI Shuji authored
### Example (with `MRB_UTF8_STRING`) ```ruby s = "\u3042" p s.size s.dump p s.size ``` #### Before this patch: ``` 1 3 ``` #### After this patch: ``` 1 1 ```
-
- 21 Oct, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Remove `Kernel#getc`
-
KOBAYASHI Shuji authored
`Kernel#getc` has been removed since Ruby 1.9 and is not defined in ISO.
-
- 20 Oct, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use `mrb_str_cat_str` instead of `mrb_str_concat` if possible
-
KOBAYASHI Shuji authored
-
- 19 Oct, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix that `Module#to_s` may return frozen string; ref 08eafe21
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Print mrbc command on verbose mode
-
- 18 Oct, 2019 3 commits
-
-
take-cheeze authored
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4778 from shuujii/move-methods-of-Kernel-to-kernel.rb-from-io.rb-in-mruby-io-gem Move methods of `Kernel` to `kernel.rb` from `io.rb` in `mruby-io` gem
-
KOBAYASHI Shuji authored
-
- 17 Oct, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Remove constant export declaration for MRBC output compiled as C
-
yuri authored
-
Yukihiro "Matz" Matsumoto authored
Make `IO#each` family without block to return `Enumerator`
-
KOBAYASHI Shuji authored
-
- 16 Oct, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4775 from shuujii/use-mrb_sym_name_len-instead-of-mrb_sym_name-in-assign_class_name Use `mrb_sym_name_len` instead of `mrb_sym_name` in `assign_class_name`
-
KOBAYASHI Shuji authored
-
- 15 Oct, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Adjust `buf` size in `str_escape`
-
KOBAYASHI Shuji authored
-
- 14 Oct, 2019 5 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix the example of `Array#intersection` in the document [ci skip]
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 13 Oct, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Refactor `mrb_class_name_class`
-
KOBAYASHI Shuji authored
- Use `mrb_sym_name_len` instead of `mrb_sym_name` (class name should not be escaped). - Avoid `mrb_str_dup` (it is unnecessary to be shared string because it is changed).
-
- 12 Oct, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
SHARED string is not required when sharing POOL string
-
Yukihiro "Matz" Matsumoto authored
Rename `str_make_shared()` to `str_share()` in `src/string.c`
-
KOBAYASHI Shuji authored
The heap string buffer of POOL string always exists, does not need to be released, and read only, so it can be shared as NOFREE string.
-
KOBAYASHI Shuji authored
Because it may not create `struct mrb_shared_string`.
-
- 11 Oct, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Besides that fix bugs that mistakenly calls `raise_error` that emits code to raise runtime error instead of `codegen_error` that terminates code generation immediately.
-
Yukihiro "Matz" Matsumoto authored
Remove unused exception classes in `mruby-io` gem
-
KOBAYASHI Shuji authored
-