Name : perl-URI-Encode-XS
| |
Version : 0.110.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-08-04 20:29:25
|
Group : Unspecified
| Source RPM : perl-URI-Encode-XS-0.110.0-lp156.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Perl URI encoder/decoder using C
|
Description :
This is a Perl URI encoder/decoder written in XS based on at https://tools.ietf.org/html/rfc3986. This module always encodes characters that are not unreserved. When decoding, invalid escape sequences are preserved, e.g:
uri_decode(\"foo%20bar%a/\"); # foo bar%a/ uri_decode(\"foo%20bar%a\"); # foo bar%a uri_decode(\"foo%20bar%\"); # foo bar%
As of version 0.10, the \'bench\' script shows it to be significantly faster than \'URI::Escape\':
Rate escape encode_utf8 encode escape 140114/s -- -94% -98% encode_utf8 2255100/s 1509% -- -71% encode 7735189/s 5421% 243% --
Rate unescape decode_utf8 decode unescape 188714/s -- -95% -97% decode_utf8 3744638/s 1884% -- -50% decode 7429263/s 3837% 98% --
However this is just one string - the fewer encoded/decoded characters are in the string, the closer the benchmark is likely to be (see \'bench\' for details of the benchmark). Different hardware will yield different results.
Another fast encoder/decoder which supports custom escape lists, is at https://metacpan.org/pod/URI::XSEscape.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.6/x86_64 |