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

[WIP] ControlParameter inordinatly slow on big file. #1386

Closed

Conversation

troessner
Copy link
Owner

WIP for #1381

@troessner troessner self-assigned this Jul 3, 2018
it 'runs on a complicated source file in less than 10 seconds' do
examiner = Reek::Examiner.new source, filter_by_smells: ['ControlParameter']
# This is the actual test
# expect(examiner.smells.size).to perform_under(10).sec
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mvz stumbled across this gem - seems worth a shot to me. Also wdyt about those kind of performance specs in general?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, definitely worth a try. I have no experience with this kind of spec but it looks very useful.

gem 'yard', '~> 0.9.5'

if RUBY_VERSION >= '2.3'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥 🎉

@troessner troessner force-pushed the control-parameter-inordinatly-slow-on-big-file branch 8 times, most recently from 877a727 to 0a2b00e Compare July 7, 2018 16:53
@troessner troessner force-pushed the control-parameter-inordinatly-slow-on-big-file branch from 0a2b00e to cf84d8c Compare July 8, 2018 06:48
@troessner
Copy link
Owner Author

Problem solved via #1389, closing this one.

@troessner troessner closed this Jul 10, 2018
@troessner troessner deleted the control-parameter-inordinatly-slow-on-big-file branch July 10, 2018 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants