Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance #43

Merged
merged 2 commits into from
Jun 3, 2021
Merged

Improve performance #43

merged 2 commits into from
Jun 3, 2021

Commits on May 17, 2021

  1. Re-generate the parser code

    The commit a742e81 changed only
    format_parser.kpeg, but it looks like format_parser.rb was not
    re-generated.
    mame committed May 17, 2021
    Configuration menu
    Copy the full SHA
    197266e View commit details
    Browse the repository at this point in the history
  2. Use reg.match(str, pos) instead of reg.match(str[pos..-1])

    ... because the former is faster. Note that we need to use `\\G` instead
    of `\\A` for regexps.
    
    This trivial performance improvement will reduce a few seconds of Ruby's
    "make install" process because kpeg is used to generate the markdown
    parser of RDoc.
    mame committed May 17, 2021
    Configuration menu
    Copy the full SHA
    70e2287 View commit details
    Browse the repository at this point in the history