This project is archived and is in readonly mode.

#1070 ✓hold


Reported by apeiros | September 18th, 2008 @ 08:51 PM | in 2.x

For glory (speed improvement):

old: .each_byte do |c| string << sprintf("%%%x", c) end new: .unpack("H*").first.gsub(/../, "%\&")

Personally I'd pack that into its own String method or helper at least, just to improve readability.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket