From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: yahns-public@yhbt.net Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 498BC203B3; Tue, 30 Jun 2015 03:02:02 +0000 (UTC) From: Eric Wong To: yahns-public@yhbt.net Cc: e@80x24.org Subject: [PATCH 0/3] favor newer Rubies for performance Date: Tue, 30 Jun 2015 03:01:50 +0000 Message-Id: <1435633313-30223-1-git-send-email-e@80x24.org> List-Id: * [PATCH 1/3] generate response status strings dynamically This unfortunately introduces a minor performance regression. However, it is unlikely to be noticeable in real-world apps. * [PATCH 2/3] reduce constants and optimize for Ruby 2.2+ This appears to recover the performance lost in 1/3 when doing informal benchmarks on a private app (persistent connections enabled). * [PATCH 3/3] http_response: reduce bytecode size This generates less bytecode when checking with RubyVM::InstructionSequence.compile lib/yahns/http_client.rb | 16 +++++----------- lib/yahns/http_response.rb | 35 ++++++++++++++++------------------- lib/yahns/max_body.rb | 12 ++++-------- lib/yahns/proxy_http_response.rb | 16 +++++++++------- 4 files changed, 34 insertions(+), 45 deletions(-)