{"id":20550201,"url":"https://github.com/dnmfarrell/uri-encode-xs","last_synced_at":"2025-12-07T07:02:00.885Z","repository":{"id":45150265,"uuid":"60643770","full_name":"dnmfarrell/URI-Encode-XS","owner":"dnmfarrell","description":"A C based URI encoder decoder for Perl","archived":false,"fork":false,"pushed_at":"2022-01-05T01:06:09.000Z","size":91,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-16T16:49:17.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"XS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnmfarrell.png","metadata":{"files":{"readme":"README.pod","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-07T20:21:22.000Z","updated_at":"2023-02-10T11:37:17.000Z","dependencies_parsed_at":"2022-09-09T16:00:10.720Z","dependency_job_id":null,"html_url":"https://github.com/dnmfarrell/URI-Encode-XS","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FURI-Encode-XS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FURI-Encode-XS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FURI-Encode-XS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FURI-Encode-XS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnmfarrell","download_url":"https://codeload.github.com/dnmfarrell/URI-Encode-XS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242157180,"owners_count":20081036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T02:23:49.006Z","updated_at":"2025-12-07T07:02:00.806Z","avatar_url":"https://github.com/dnmfarrell.png","language":"XS","funding_links":[],"categories":[],"sub_categories":[],"readme":"=head1 NAME\n\nURI::Encode::XS - a Perl URI encoder/decoder using C\n\n=head1 SYNOPSIS\n\n  use URI::Encode::XS qw/uri_encode uri_decode/;\n\n  my $encoded = uri_encode($data);\n  my $decoded = uri_decode($encoded);\n\n=head1 DESCRIPTION\n\nThis is a Perl URI encoder/decoder written in XS based on L\u003cRFC3986|https://tools.ietf.org/html/rfc3986\u003e.\nThis module always encodes characters that are not unreserved. When decoding,\ninvalid escape sequences are preserved, e.g:\n\n  uri_decode(\"foo%20bar%a/\"); # foo bar%a/\n  uri_decode(\"foo%20bar%a\");  # foo bar%a\n  uri_decode(\"foo%20bar%\");   # foo bar%\n\nAs of version 0.09, the C\u003cbench\u003e script shows it to be significantly faster\nthan C\u003cURI::Escape\u003e:\n\n              Rate escape encode\n  escape  144165/s     --   -98%\n  encode 8239785/s  5616%     --\n                Rate unescape   decode\n  unescape  196870/s       --     -97%\n  decode   6051468/s    2974%       --\n\nHowever this is just one string - the fewer encoded/decoded characters are\nin the string, the closer the benchmark is likely to be (see C\u003cbench\u003e for\ndetails of the benchmark). Different hardware will yield different results.\n\nAnother fast encoder/decoder which supports custom escape lists, is\nL\u003cURI::XSEscape|https://metacpan.org/pod/URI::XSEscape\u003e.\n\n=head1 INSTALLATION\n\n  $ cpan URI::Encode::XS\n\nOr\n\n  $ git clone https://github.com/dnmfarrell/URI-Encode-XS\n  $ cd URI-Encode-XS\n  $ perl Makefile.PL\n  $ make\n  $ make test\n  $ make install\n\n=head1 CONTRIBUTORS\n\n=over 4\n\n=item * L\u003cAristotle Pagaltzis|https://github.com/ap\u003e\n\n=item * L\u003cChristian Hansen|https://github.com/chansen\u003e\n\n=item * L\u003cJesse DuMond|https://github.com/JesseCanary\u003e\n\n=back\n\n=head1 SEE ALSO\n\n=over 4\n\n=item * L\u003cURI::Escape|https://metacpan.org/pod/URI::Escape\u003e\n\n=item * L\u003cURI::XSEscape|https://metacpan.org/pod/URI::XSEscape\u003e\n\n=item * L\u003cURL::Encode|https://metacpan.org/pod/URL::Encode\u003e\n\n=item * My article about the story of this module: L\u003cThe road to a 55x speedup with XS|https://www.perl.com/article/the-road-to-a-55x-speedup-with-xs/\u003e\n\n=back\n\n=head1 REPOSITORY\n\nL\u003chttps://github.com/dnmfarrell/URI-Encode-XS\u003e\n\n=head1 LICENSE\n\nSee LICENSE\n\n=head1 AUTHOR\n\nE\u003ccopy\u003e 2016 David Farrell\n\n=cut\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnmfarrell%2Furi-encode-xs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnmfarrell%2Furi-encode-xs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnmfarrell%2Furi-encode-xs/lists"}