0.0
No commit activity in last 3 years
No release in over 3 years
The Rack Fast Escape library, by The Rubyists, LLC
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme
== CGI Fast Escape/Unescape
----------

  The CGI Fast Escape library, by The Rubyists, LLC

This library replaces the CGI.escape and #unescape methods
with the versions from URLEscape, a C extension which increases the
efficiency of these methods at least 20x.

== Download

  Standard gem locations, source on github 

== Usage
-------

  require "cgi"
  require "cgi_fast_escape"
  CGI.escape("%03a" * 10000000)

Note: The above with CGI.escape may eat a lot of cycles.

== Tests

If you have the full source, run the specs with 'rake' in the
root of the library tree (lib/..).

== Benchmarks

|user|system|total|real
URLEscape::unescape|0.090000|0.000000|0.090000|(  0.090418)
CGI::unescape|2.920000|0.000000|2.920000|(  2.924822)

|user|system|total|real
URLEscape::unescape|0.090000|0.000000|0.090000|(  0.089071)
CGI::unescape|3.120000|0.010000|3.130000|(  3.125334)

|user|system|total|real
URLEscape::escape|0.200000|0.000000|0.200000|(  0.194290)
CGI::escape|3.960000|0.000000|3.960000|(  3.995122)|

== Support

See #rubyists on freenode or rubyists@rubyists.com

Copyright(c) 2009 by The Rubyists, LLC