pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/net/ruby-amq-protocol



In message <20260118040505.A36EEFC2E%cvs.NetBSD.org@localhost>
        on Sun, 18 Jan 2026 04:05:05 +0000,
        "Takahiro Kambe" <taca%netbsd.org@localhost> wrote:
> Module Name:  pkgsrc
> Committed By: taca
> Date:         Sun Jan 18 04:05:05 UTC 2026
> 
> Modified Files:
>       pkgsrc/net/ruby-amq-protocol: Makefile PLIST distinfo
> 
> Log Message:
> net/ruby-amq-protocol: update to 2.5.0
> 
> 2.5.0 (2025-12-31)
> 
> Additional Consumer Hot Path Optimizations
> 
> * A few more decode method optimizations for consumer delivery code paths.

2.4.0 (2025-12-31)

Performance Improvements

Optimized encoding and decoding hot paths:

* Built-in Q>/q> packing/unpacking directives are 6-7x faster than the
  original implementation (that originally targeted Ruby 1.8.x)
* Switched to unpack1 instead of unpack().first throughout
* Use byteslice instead of slice for binary string operations
* Use getbyte for single byte access (4x faster than alternatives)
* Adopted frozen_string_literal pragma

The improvements on Ruby 3.4 are very meaningful:

* AMQ::Pack.pack_uint64_big_endian: about 6.6x faster
* AMQ::Pack.unpack_uint64_big_endian: about 7.2x faster
* Basic.Deliver.decode: about 1.7x faster
* Basic.Ack/Nack/Reject.encode: about 2.5x faster

-- 
Takahiro Kambe <taca%NetBSD.org@localhost> / <taca%back-street.net@localhost>



Home | Main Index | Thread Index | Old Index