Ticket #149 (new enhancement)

Opened 8 months ago

[PATCH] fast_xs: forward-port of latest changes from mainline fast_xs

Reported by: normalperson Owned by: why
Priority: trivial Milestone:
Component: ext/hpricot_scan Version:
Keywords: fast_xs Cc:

Description

alloca() dependency removed. An extra memory allocation and memory copy is saved by writing directly to the string object returned by rb_str_new(0, len) (both the Ruby 1.8.6 and 1.9 code has this usage in it, so it should be safe :)

This also adds Ruby 1.9 compatibility macros:

RARRAY_LEN, RARRAY_PTR, RSTRING_LEN, RSTRING_PTR

Attachments

0001-fast_xs-forward-port-of-latest-changes-from-mainlin.patch (4.5 kB) - added by normalperson 8 months ago.
[PATCH] fast_xs: forward-port of latest changes from mainline fast_xs

Change History

Changed 8 months ago by normalperson

[PATCH] fast_xs: forward-port of latest changes from mainline fast_xs

Note: See TracTickets for help on using tickets.