From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id CCA64200E0 for ; Thu, 29 Dec 2016 07:42:23 +0000 (UTC) From: Eric Wong To: mogilefs-client-public@bogomips.org Subject: [PATCH 0/3] misc cleanups Date: Thu, 29 Dec 2016 07:42:12 +0000 Message-Id: <20161229074215.12425-1-e@80x24.org> List-Id: Nothing earth shattering, just 3 cleanups while I noticed while working on other stuff... 3 changes: avoid pointless capture in regexp use opt_str_freeze to avoid allocations in a few places new_file/common: simplify empty class declarations lib/mogilefs/http_file.rb | 2 +- lib/mogilefs/new_file/common.rb | 12 ++++++------ lib/mogilefs/new_file/stream.rb | 8 ++++---- lib/mogilefs/new_file/writer.rb | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-)