Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EC13A200D55 for ; Sat, 9 Dec 2017 11:57:34 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E11F1160C0E; Sat, 9 Dec 2017 10:57:34 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 29527160C03 for ; Sat, 9 Dec 2017 11:57:34 +0100 (CET) Received: (qmail 90628 invoked by uid 500); 9 Dec 2017 10:57:33 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 90617 invoked by uid 99); 9 Dec 2017 10:57:32 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Dec 2017 10:57:32 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 42C87E56FC; Sat, 9 Dec 2017 10:57:30 +0000 (UTC) From: zhiyu-he To: dev@thrift.apache.org Reply-To: dev@thrift.apache.org Message-ID: Subject: [GitHub] thrift pull request #1440: Enhancement binary_protocol with frametransport Content-Type: text/plain Date: Sat, 9 Dec 2017 10:57:30 +0000 (UTC) archived-at: Sat, 09 Dec 2017 10:57:35 -0000 GitHub user zhiyu-he opened a pull request: https://github.com/apache/thrift/pull/1440 Enhancement binary_protocol with frametransport for frametransport write method write data-length to server read method read data-length from server and there are lots of un-usable memory copy & system call i optimize this with an simple buffer, manager de write & read with the benchmark for write improve 2times & for read improve 3times link-for testingļ¼š https://github.com/zhiyu-he/go_performance/blob/hzy/modify/benchmark/thrift_serializer_test.go You can merge this pull request into a Git repository by running: $ git pull https://github.com/ThoseFlowers/thrift OPT/fast_binary_protocol Alternatively you can review and apply these changes as the patch at: https://github.com/apache/thrift/pull/1440.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1440 ---- commit 872f7450d352209e1ee2644ec9a43c74af88137d Author: hezhiyu Date: 2017-12-08T09:37:32Z q Change-Id: Iba77f4f202575c5c12cd3a490481593b58a35b94 ---- ---