You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2010/09/03 23:44:33 UTC
[jira] Created: (CASSANDRA-1465) optimize OutboundTcpConnectionPool
by removing synchronization, string comparisons
optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
----------------------------------------------------------------------------------
Key: CASSANDRA-1465
URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
Project: Cassandra
Issue Type: Improvement
Components: Core
Reporter: Jonathan Ellis
Assignee: Jonathan Ellis
Priority: Minor
Fix For: 0.6.6
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-1465) optimize
OutboundTcpConnectionPool by removing synchronization, string comparisons
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906282#action_12906282 ]
Jonathan Ellis commented on CASSANDRA-1465:
-------------------------------------------
unless it's going to change the wire format, I don't see any reason to jam more changes into this ticket (and I'm a big fan of not creating APIs speculatively, either -- let's take the factory approach if/when it's needed)
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0001-eager-create-OTC-objects.txt, 0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt, 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-1465) optimize
OutboundTcpConnectionPool by removing synchronization, string comparisons
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906561#action_12906561 ]
Jonathan Ellis commented on CASSANDRA-1465:
-------------------------------------------
rebased and added missing import to AESTest in patch 02
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0001-eager-create-OTC-objects.txt, 0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt, 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-1465) optimize
OutboundTcpConnectionPool by removing synchronization, string comparisons
Posted by "Nate McCall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906577#action_12906577 ]
Nate McCall commented on CASSANDRA-1465:
----------------------------------------
0.6.6:
- applied 0001 and all unit tests and nosetests pass
trunk:
- applied patches, all unit tests and nosetests pass
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0001-eager-create-OTC-objects.txt, 0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt, 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-1465) optimize OutboundTcpConnectionPool
by removing synchronization, string comparisons
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-1465:
--------------------------------------
Attachment: 0001-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt
0002-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6
>
> Attachments: 0001-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt, 0002-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-1465) optimize OutboundTcpConnectionPool
by removing synchronization, string comparisons
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-1465:
--------------------------------------
Attachment: 0001-eager-create-OTC-objects.txt
0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt
0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0001-eager-create-OTC-objects.txt, 0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt, 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-1465) optimize OutboundTcpConnectionPool
by removing synchronization, string comparisons
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-1465:
--------------------------------------
Attachment: (was: 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt)
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-1465) optimize OutboundTcpConnectionPool
by removing synchronization, string comparisons
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-1465:
--------------------------------------
Attachment: (was: 0001-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt)
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-1465) optimize
OutboundTcpConnectionPool by removing synchronization, string comparisons
Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906265#action_12906265 ]
Stu Hood commented on CASSANDRA-1465:
-------------------------------------
Regarding the object reuse: when a Message is sent via MessagingService, it already takes ownership of the object. Once it has finished sending it, it could add it back to a pool for reuse by the Message factory function.
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0001-eager-create-OTC-objects.txt, 0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt, 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-1465) optimize OutboundTcpConnectionPool
by removing synchronization, string comparisons
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-1465:
--------------------------------------
Attachment: (was: 0002-derive-stage-from-verb-instead-of-transmitting-it-for-.txt)
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-1465) optimize
OutboundTcpConnectionPool by removing synchronization, string comparisons
Posted by "Nate McCall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906585#action_12906585 ]
Nate McCall commented on CASSANDRA-1465:
----------------------------------------
patch 1465-0001-0.6.txt applies clean against 0.6, unit and nosetests pass.
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0001-eager-create-OTC-objects.txt, 0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt, 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt, 1465-0001-0.6.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-1465) optimize OutboundTcpConnectionPool
by removing synchronization, string comparisons
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-1465:
--------------------------------------
Attachment: 1465-0001-0.6.txt
0001 rebased against 0.6 (whitespace problems? it looked like it should apply cleanly)
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0001-eager-create-OTC-objects.txt, 0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt, 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt, 1465-0001-0.6.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-1465) optimize OutboundTcpConnectionPool
by removing synchronization, string comparisons
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-1465:
--------------------------------------
Attachment: (was: 0001-eager-create-OTC-objects.txt)
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-1465) optimize
OutboundTcpConnectionPool by removing synchronization, string comparisons
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906292#action_12906292 ]
Jonathan Ellis commented on CASSANDRA-1465:
-------------------------------------------
I also note that conventional wisdom is that on modern JVMs, manually managed object pools will perform worse than create/GC for all but the most heavyweight objects (which Message/Header are not).
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0001-eager-create-OTC-objects.txt, 0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt, 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-1465) optimize OutboundTcpConnectionPool
by removing synchronization, string comparisons
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-1465:
--------------------------------------
Attachment: (was: 0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt)
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (CASSANDRA-1465) optimize
OutboundTcpConnectionPool by removing synchronization, string comparisons
Posted by "Nate McCall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906577#action_12906577 ]
Nate McCall edited comment on CASSANDRA-1465 at 9/6/10 4:36 PM:
----------------------------------------------------------------
0.6.6:
- applied 0001 and all unit tests and nosetests pass
trunk:
- applied patches, all unit tests and nosetests pass
EDIT: I did some patch voodoo I forgot to mention to get 0.6 patch working, hence following comments - initially it did not apply cleaning.
was (Author: zznate):
0.6.6:
- applied 0001 and all unit tests and nosetests pass
trunk:
- applied patches, all unit tests and nosetests pass
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0001-eager-create-OTC-objects.txt, 0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt, 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt, 1465-0001-0.6.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-1465) optimize
OutboundTcpConnectionPool by removing synchronization, string comparisons
Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906256#action_12906256 ]
Stu Hood commented on CASSANDRA-1465:
-------------------------------------
Patches that touch messaging are relatively rare, and since this one touches the constructor for Message, it might be a good time to add a factory function for Message and Header (together), so that we can add in object reuse, or change the implementation in the future (CASSANDRA-1015?).
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0001-eager-create-OTC-objects.txt, 0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt, 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-1465) optimize OutboundTcpConnectionPool
by removing synchronization, string comparisons
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-1465:
--------------------------------------
Attachment: 0001-eager-create-OTC-objects.txt
0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt
0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
> optimize OutboundTcpConnectionPool by removing synchronization, string comparisons
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-1465
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1465
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6.6, 0.7 beta 2
>
> Attachments: 0001-eager-create-OTC-objects.txt, 0002-naive-replacement-of-String-stage-names-w-Stage-enum.-.txt, 0003-derive-stage-from-verb-instead-of-transmitting-it-for-.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.