From commits-return-60023-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Wed Sep 02 02:08:56 2009 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 97966 invoked from network); 2 Sep 2009 02:08:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Sep 2009 02:08:56 -0000 Received: (qmail 30577 invoked by uid 500); 2 Sep 2009 02:08:56 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 30534 invoked by uid 500); 2 Sep 2009 02:08:56 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 30523 invoked by uid 99); 2 Sep 2009 02:08:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2009 02:08:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Wed, 02 Sep 2009 02:08:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AEF46234C004 for ; Tue, 1 Sep 2009 19:08:32 -0700 (PDT) Message-ID: <1607080663.1251857312701.JavaMail.jira@brutus> Date: Tue, 1 Sep 2009 19:08:32 -0700 (PDT) From: "Regis Xu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6328) [classlib][nio] optimize SocketChannel.write(ByteBuffer[], int, int) by writev In-Reply-To: <290644005.1251857072710.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Regis Xu updated HARMONY-6328: ------------------------------ Attachment: HARMONY-6328.diff This patch add a new method writevDirect to INetworkSystem, and only implement native code on Linux, Windows side code will implement soon. > [classlib][nio] optimize SocketChannel.write(ByteBuffer[], int, int) by writev > ------------------------------------------------------------------------------ > > Key: HARMONY-6328 > URL: https://issues.apache.org/jira/browse/HARMONY-6328 > Project: Harmony > Issue Type: Improvement > Components: Classlib > Affects Versions: 5.0M11 > Reporter: Regis Xu > Attachments: HARMONY-6328.diff > > > SocketChannel.write(ByteBuffer[], int, int) can be optimized by using writev, which can write an array of buffer to socket without any stage buffer. If all passed in ByteBuffer is direct buffer, they can be passed to system call directly without any copies. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.