=head1 NAME

URI::Encode::XS - a Perl URI encoder/decoder using C

=head1 SYNOPSIS

  use URI::Encode::XS qw/uri_encode uri_decode/;

  my $encoded = uri_encode($data);
  my $decoded = uri_decode($encoded);

=head1 DESCRIPTION

This is a Perl module that wraps my C URI encoder/decoder based on
L<RFC3986|https://tools.ietf.org/html/rfc3986>.

I've benchmarked it and found it significantly faster than URI::Escape at
encoding and decoding:

  $ perl bench
             Rate escape encode
  escape 143129/s     --   -86%
  encode 998980/s   598%     --
                Rate unescape   decode
  unescape  193364/s       --     -94%
  decode   3082718/s    1494%       --

However this is just one string - the fewer encoded/decoded characters are
in the string, the closer the benchmark is likely to be (see C<bench> for
details). Different hardware will yield different results.

For a faster encoder/decoder which supports custom escape lists, check out
L<URI::XSEscape|https://metacpan.org/pod/URI::XSEscape>.

=head1 INSTALLATION

  $ git clone https://github.com/dnmfarrell/URI-Encode-XS
  $ cd URI-Encode-XS
  $ perl Makefile.PL
  $ make
  $ make test
  $ make install

=head1 LICENSE

See LICENSE

=head1 AUTHOR

E<copy> 2016 David Farrell

=cut