From: Willem de Groot Date: Thu, 27 Aug 2015 09:19:31 +0000 (+0200) Subject: Add instructions on using libyaml X-Git-Tag: v1.7.4~7^2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4450cb992fcffaab038960c68d6a051b8a359b4a;p=vcrpy.git Add instructions on using libyaml For a 10x speed increase! --- diff --git a/README.rst b/README.rst index 768e850..e8ac807 100644 --- a/README.rst +++ b/README.rst @@ -573,6 +573,24 @@ If you set the loglevel to DEBUG, you will also get information about which matchers didn't match. This can help you with debugging custom matchers. +Speed +----- +VCR.py runs about 10x faster when pyyaml can use the libyaml extensions. However, just installing ``libyaml`` (Mac) or `libyaml-dev`` (Linux) is not enough, as pyyaml needs to be rebuild with the proper flag. Note that this flag is cached by pip, so clear the cache first. + +Are you using libyaml already? This should work: + +:: + + python -c 'from yaml import CLoader' + +If not: + +:: + + pip uninstall pyyaml + pip --no-cache-dir install pyyaml + + Upgrade -------