Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 98348 invoked from network); 9 Dec 2008 23:17:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Dec 2008 23:17:10 -0000 Received: (qmail 67241 invoked by uid 500); 9 Dec 2008 23:17:19 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 67202 invoked by uid 500); 9 Dec 2008 23:17:19 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 67191 invoked by uid 99); 9 Dec 2008 23:17:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 15:17:19 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 23:17:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3A8A3234C2B3 for ; Tue, 9 Dec 2008 15:16:44 -0800 (PST) Message-ID: <1216058910.1228864604224.JavaMail.jira@brutus> Date: Tue, 9 Dec 2008 15:16:44 -0800 (PST) From: "Raghu Angadi (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Created: (HADOOP-4813) Avoid a buffer copy while replying to RPC requests. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Avoid a buffer copy while replying to RPC requests. --------------------------------------------------- Key: HADOOP-4813 URL: https://issues.apache.org/jira/browse/HADOOP-4813 Project: Hadoop Core Issue Type: Improvement Components: ipc Reporter: Raghu Angadi RPC server first serializes RPC response to a ByteArrayOutputStream and then creates a new array to write to socket. For most responses the RPC handler is able to write the entire response in-line. If we could use the same buffer used by ByteArrayOutputStream, we can avoid this copy. As mentioned in HADOOP-4802, yet another copy could be avoided (in most cases) if we use a static direct buffer for the responses (not proposed for this jira). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.