mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
786f0aa015
Implement C version of File.extname for better performance: - Direct C string processing instead of Ruby basename + rindex - Efficient path parsing with single pass through string - Proper handling of edge cases (dotfiles, trailing slashes, etc.) - Maintains full compatibility with Ruby implementation Performance improvement: - Eliminates Ruby method call overhead for basename/rindex - Direct C string operations vs Ruby string methods - Faster path processing for file extension extraction Co-authored-by: Claude <noreply@anthropic.com>