bougyman / cgi_fast_escape
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
TJ Vanderpoel (author)
Wed Jun 24 17:20:20 -0700 2009
commit a01924f618c8f5631f7d5749eddfd302744e3212
tree 5361cb42064c1044b5787b16422c7df9a7ab480e
parent 0373cb36cd17b6613b3a099fe041b858ae97c31a
tree 5361cb42064c1044b5787b16422c7df9a7ab480e
parent 0373cb36cd17b6613b3a099fe041b858ae97c31a
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Jun 24 17:19:27 -0700 2009 | |
| |
AUTHORS | Wed Jun 24 17:20:20 -0700 2009 | |
| |
CHANGELOG | Wed Jun 24 17:20:20 -0700 2009 | |
| |
LICENSE | Wed Jun 24 17:19:27 -0700 2009 | |
| |
MANIFEST | Wed Jun 24 17:20:20 -0700 2009 | |
| |
README | Mon Jun 22 15:41:28 -0700 2009 | |
| |
Rakefile | Wed Jun 24 17:19:27 -0700 2009 | |
| |
doc/ | Wed Jun 24 17:19:27 -0700 2009 | |
| |
lib/ | Wed Jun 24 17:19:27 -0700 2009 | |
| |
spec/ | Wed Jun 24 17:19:27 -0700 2009 | |
| |
tasks/ | Wed Jun 24 17:19:27 -0700 2009 |
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
