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

Performance improvement #397

Merged
merged 4 commits into from Apr 29, 2016
Merged

Performance improvement #397

merged 4 commits into from Apr 29, 2016

Conversation

mame
Copy link
Member

@mame mame commented Mar 15, 2016

This PR reduces MRI's make time from 70 sec. to 45 sec. on my machine.

RDoc::Parser::C#find_body parsed file_content every time to find the
method body.  Now it creates a method-body table first, which avoid
mutliple parsing.
Time.parse is painfully slow.
RDoc::RubyLex#getc is the bottleneck in RDoc.  It determined which
ungetc buffer to use by branching upon `@here_header`.  We can remove
the branch by replacing `@here_header` flag with `@current_readed`,
which represents the current buffer directly,
@hsbt
Copy link
Member

hsbt commented Apr 29, 2016

I confirmed to reduce elapsed time from 78 sec to 57 sec with my env.

@hsbt hsbt merged commit 41207e8 into ruby:master Apr 29, 2016
@hsbt
Copy link
Member

hsbt commented Apr 29, 2016

Thank you!

hsbt added a commit that referenced this pull request Apr 29, 2016
This reverts commit 41207e8, reversing
changes made to 86c8448.
hsbt added a commit that referenced this pull request Apr 29, 2016
@zzak
Copy link
Member

zzak commented Apr 30, 2016

Sorry for no reply! I meant to comment sooner.

Thank you for understanding and patch mame-san!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants