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

Speed up method implementation. #223

Merged
merged 1 commit into from Mar 16, 2017

Conversation

timheilig
Copy link

This change uses an associative array to speed up the tracking
of previously implemented methods when creating a new Mock class.

This change uses an associative array to speed up the tracking
of previously implemented methods when creating a new Mock class.
@timheilig
Copy link
Author

This is just a re-do of my previous pull request. For context we still see about 10% of mocking time spent searching this array for previously implemented methods, which goes to .01% when using an associative array instead.

@mlively mlively merged commit d0efe71 into phake:master Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants