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

Create ProxyOptions only when required #1469

Merged

Conversation

blairconrad
Copy link
Member

As discussed earlier. There may be a small improvement in the time required to create fakes. Certainly we'll make fewer objects in what I believe to be the most common case - where there's no fake options builder used to create a fake.
I profiled:

image

Tell me what you think.

I made two commits because I didn't want the rename to confuse the diffs.

thomaslevesque
thomaslevesque previously approved these changes Oct 6, 2018
Copy link
Member

@thomaslevesque thomaslevesque left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @blairconrad!

@blairconrad
Copy link
Member Author

Thank you, @thomaslevesque. Squashed.

@thomaslevesque thomaslevesque merged commit d99519f into FakeItEasy:develop Oct 6, 2018
@blairconrad blairconrad added this to the vNext milestone Oct 8, 2018
@blairconrad blairconrad deleted the create-proxyoptions-at-need branch November 7, 2018 11:55
@thomaslevesque
Copy link
Member

This change has been released in FakeItEasy 5.0.0.

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.

None yet

2 participants