Minor optimization for url_quote (#1085)
Minor optimization for url_quote (#1085)

* Minor optimization for url_quote

Since we're working with bytes here anyway, there's no need to use
strings and encode. This yields ~9% performance gain with python3 and
~23% performance gain with python2.

* Further improve url_quote performance

This variant fixes compatibility with python <=3.4 and yields
additional performance improvement (total 50% with python 2, 22% with python 3)

pallets/werkzeug,ThiefMaster/werkzeug,fkazimierczak/werkzeug,pjknkda/werkzeug,mitsuhiko/werkzeug,mitsuhiko/werkzeug,pallets/werkzeug,fkazimierczak/werkzeug,pjknkda/werkzeug,ThiefMaster/werkzeug,pallets/werkzeug,fkazimierczak/werkzeug