Improve performance for single-buffer requests to hashxx.

Use the one-shot version of the hash function from xxHash when we can
determine that there is only a single buffer-like object to hash. This
significantly improves performance for small requests (likely mostly
due to avoiding malloc/free and extra function calls), about 4x on the
20 byte buffers in examples/perf.py.