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

enable low-level optimization #23

Merged
merged 3 commits into from
Dec 21, 2015
Merged

enable low-level optimization #23

merged 3 commits into from
Dec 21, 2015

Conversation

zaneli
Copy link
Contributor

@zaneli zaneli commented Dec 21, 2015

@@ -24,6 +24,8 @@ import net.spy.memcached.ops.OperationQueueFactory
* @param operationTimeout is the default operation timeout; When the limit is reached, the
* Future responses finish with Failure(TimeoutException)
*
* @param shouldOptimize If true, low-level optimization is in effect.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Took me a while to track down exactly what happens if this is true, but it seems at the end of the day this option gets propagated to the MemcachedConnection, where, the effect is:

If true, optimisation will collapse multiple sequential get ops.

Can you please add that that description into the parameter ScalaDoc ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I dit it.
How does that look?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Great LGTM.

@lloydmeta lloydmeta self-assigned this Dec 21, 2015
@lloydmeta lloydmeta added this to the 1.7.2 milestone Dec 21, 2015
lloydmeta added a commit that referenced this pull request Dec 21, 2015
@lloydmeta lloydmeta merged commit 3abb5fd into monix:master Dec 21, 2015
@zaneli zaneli deleted the feature/enable-low-level-optimization branch December 21, 2015 07:12
@alexandru
Copy link
Member

👍 but guys, what's the default in SpyMemcached? Assuming no downsides, wouldn't it be more beneficial to default to true?

@lloydmeta
Copy link
Collaborator

@alexandru: Both ConnectionFactoryBuilder and DefaultConnectionFactory default to false for this config value if not set.

In the interests of safety I think we should keep it as false, since the default was deliberately set to false from true in this commit, citing this bug report

@alexandru
Copy link
Member

OK, then false is good.

alexandru pushed a commit that referenced this pull request Jan 15, 2016
alexandru pushed a commit that referenced this pull request Jan 15, 2016
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.

3 participants