ruby/internal
Jean Boussier 27bb1623cd file.c: Optimize rb_file_dirname_n fixed costs
- `str_null_check` was performed twice, once by `FilePathStringValue`
  and a second time by `StringValueCStr`.
- `StringValueCStr` was checking for the terminator presence, but we
  don't care about that.
- `FilePathStringValue` calls `rb_str_new_frozen` to ensure `fname`
  isn't mutated, but that's costly for such a check. Instead we
  can do it in debug mode only.
- `rb_enc_get` is slow because it accepts arbitrary objects, even immediates,
  so it has to do numerous type checks. Add a much faster `rb_str_enc_get`
  when we know we're dealing with a string.
- `rb_enc_copy` is slow for the same reasons, since we already have the
  encoding, we can use `rb_enc_str_new` instead.
2026-01-20 08:33:42 +01:00
..
2025-12-01 15:19:26 -08:00
2025-11-19 16:05:12 +09:00
2025-12-10 12:09:50 +09:00
2025-12-11 09:53:10 -08:00
2025-12-16 09:51:07 +01:00
2025-12-11 23:25:57 +01:00
2025-12-29 09:03:31 -05:00
2025-10-13 15:21:36 -04:00
2025-06-02 09:52:25 -04:00
2025-08-19 10:02:13 -04:00
2025-11-14 09:37:49 +09:00