From zefram@fysh.org Fri Mar 7 12: | 16:50 2014 |
MIME-Version: | 1.0 |
X-Spam-Status: | No, score=-2.255 tagged_above=-99.9 required=10 tests=[AWL=0.181, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.535, SPF_HELO_PASS=-0.001] autolearn=ham |
Content-Disposition: | inline |
X-Spam-Flag: | NO |
X-Virus-Checked: | Checked |
Content-Type: | multipart/mixed; boundary="76DTJ5CE0DCVQemd" |
Message-ID: | <20140307171638.GQ18071@fysh.org> |
X-Virus-Scanned: | Debian amavisd-new at bestpractical.com |
X-Spam-Score: | -2.255 |
Received: | from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 652A5240562 for <cpan-bug+Sereal-Encoder@hipster.bestpractical.com>; Fri, 7 Mar 2014 12:16:50 -0500 (EST) |
Received: | from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R+mmelxeVveU for <cpan-bug+Sereal-Encoder@hipster.bestpractical.com>; Fri, 7 Mar 2014 12:16:49 -0500 (EST) |
Received: | from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id CB35D240124 for <bug-Sereal-Encoder@rt.cpan.org>; Fri, 7 Mar 2014 12:16:48 -0500 (EST) |
Received: | (qmail 32227 invoked by alias); 7 Mar 2014 17:16:48 -0000 |
Received: | from river.fysh.org (HELO river.fysh.org) (5.135.154.127) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 07 Mar 2014 09:16:45 -0800 |
Received: | from zefram by river.fysh.org with local (Exim 4.80 #2 (Debian)) id 1WLyNy-0002OO-7g; Fri, 07 Mar 2014 17:16:38 +0000 |
Delivered-To: | cpan-bug+Sereal-Encoder@hipster.bestpractical.com |
Subject: | custom op implementation |
Return-Path: | <zefram@fysh.org> |
X-RT-Mail-Extension: | sereal-encoder |
X-Original-To: | cpan-bug+Sereal-Encoder@hipster.bestpractical.com |
X-Spam-Check-BY: | la.mx.develooper.com |
Date: | Fri, 7 Mar 2014 17:16:38 +0000 |
X-Spam-Level: | |
To: | bug-Sereal-Encoder@rt.cpan.org |
From: | Zefram <zefram@fysh.org> |
X-RT-Interface: | |
Content-Length: | 0 |
content-type: | text/plain; charset="utf-8" |
Content-Disposition: | inline |
X-RT-Original-Encoding: | ascii |
Content-Length: | 525 |
Attached patch implements custom op optimisation for Sereal-Encoder. Same
deal as for Sereal-Decoder. Should maintain Perl version portability,
but not actually tested. Patch lacks tests for the new exportable sub.
This one is considerably simpler than Sereal-Decoder, because there's
only one affected sub.
Rate method function op
method 2.33738e+06+-59/s -- -12.3% -21.4%
function 2.66585e+06+-7.4/s 14.1% -- -10.4%
op 2.97563e+06+-9.2/s 27.3% 11.6% --
-zefram
Content-Type: | text/x-diff; charset="us-ascii" |
Content-Disposition: | attachment; filename="custom_op.patch" |
X-RT-Original-Encoding: | ascii |
Content-Length: | 6820 |
Message body is not shown because sender requested not to inline it.