diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-08-21 12:06:03 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-08-21 12:06:03 +0900 |
| commit | a84ab12735b91650a9db9f6bc55d16a9c7e992ce (patch) | |
| tree | 5a382092b8f6cba976ab1ce49e421fab77ad9c17 /lib | |
| parent | def7925873d6a3f1817a699aefd0550c0cbd7ea3 (diff) | |
| download | mruby-a84ab12735b91650a9db9f6bc55d16a9c7e992ce.tar.gz mruby-a84ab12735b91650a9db9f6bc55d16a9c7e992ce.zip | |
Prioritize embedded string over nofree (or normal) string
Prioritize embedded string in the following functions:
- `str_new_static`
- `str_new`
- `mrb_str_new_capa`
- `mrb_str_pool`
The reasons are as follows:
- Consistency with `mrb_str_byte_subseq` and `str_replace`.
- Memory locality increases and may be slightly faster.
- No conversion cost to embedded string when modifying the string.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
