Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mruby/mruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: mruby/mruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feature/str-succ-inplace-refactor
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jun 23, 2025

  1. Refactor str_succ_bang for in-place modification

    This commit refactors the str_succ_bang function in mrbgems/mruby-string-ext/src/string.c to perform string succession in-place.
    
    The previous implementation used an intermediate temporary string, which incurred memory and performance overhead.
    This change aims to reduce memory usage and improve performance by modifying the string buffer directly, using mrb_str_resize and memmove when prepending characters is necessary (e.g., '9' -> '10').
    
    Formatting changes (newlines before 'else') have also been applied as per user request.
    google-labs-jules[bot] committed Jun 23, 2025
    Configuration menu
    Copy the full SHA
    71e8dbc View commit details
    Browse the repository at this point in the history
Loading