You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Bruce Schuchardt (JIRA)" <ji...@apache.org> on 2018/02/14 20:56:00 UTC

[jira] [Updated] (GEODE-3057) Keep Thread Local Comm Buffer in selector thread

     [ https://issues.apache.org/jira/browse/GEODE-3057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruce Schuchardt updated GEODE-3057:
------------------------------------
    Labels: newbie  (was: )

> Keep Thread Local Comm Buffer in selector thread
> ------------------------------------------------
>
>                 Key: GEODE-3057
>                 URL: https://issues.apache.org/jira/browse/GEODE-3057
>             Project: Geode
>          Issue Type: Improvement
>          Components: client/server
>            Reporter: Galen O'Sullivan
>            Priority: Major
>              Labels: newbie
>
> In {{ServerConnection.run()}}, we currently pull a comm buffer from the pool every time that {run} is called by a selector, and release it back after the particular message.
> This buffer is allocated in a {{ThreadLocal}}, so it would make more sense to have the selector thread own a buffer that all commands running on that selector can use.
> As a side note, maybe it would make sense to split the run function in two, with {run} being called in the connection-per-thread case and {{doMessageOnSelector}} or so being called by the selector?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)