From 4450cb992fcffaab038960c68d6a051b8a359b4a Mon Sep 17 00:00:00 2001 From: Willem de Groot Date: Thu, 27 Aug 2015 11:19:31 +0200 Subject: [PATCH 1/4] Add instructions on using libyaml For a 10x speed increase! --- README.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 ------- From dc61f5f520b3b97729852b043d230da9fa848e1c Mon Sep 17 00:00:00 2001 From: Willem de Groot Date: Thu, 27 Aug 2015 11:20:11 +0200 Subject: [PATCH 2/4] Typoe --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index e8ac807..6f5d960 100644 --- a/README.rst +++ b/README.rst @@ -575,7 +575,7 @@ 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. +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: From 04f4a7fd2f696231cb168babc52542cfce6c11e2 Mon Sep 17 00:00:00 2001 From: Willem de Groot Date: Fri, 28 Aug 2015 11:11:03 +0200 Subject: [PATCH 3/4] Add bash code --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 6f5d960..25d2ebc 100644 --- a/README.rst +++ b/README.rst @@ -579,13 +579,13 @@ VCR.py runs about 10x faster when pyyaml can use the libyaml extensions. However Are you using libyaml already? This should work: -:: +:: code:: bash python -c 'from yaml import CLoader' If not: -:: +:: code:: bash pip uninstall pyyaml pip --no-cache-dir install pyyaml From d55d593d1cc8a7a482b3300d8811bc50bcb329a9 Mon Sep 17 00:00:00 2001 From: Willem de Groot Date: Fri, 28 Aug 2015 11:14:01 +0200 Subject: [PATCH 4/4] Changed bash to sh and fix syntax Online Github editting is not very convenient after all :) --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 25d2ebc..221938f 100644 --- a/README.rst +++ b/README.rst @@ -579,13 +579,13 @@ VCR.py runs about 10x faster when pyyaml can use the libyaml extensions. However Are you using libyaml already? This should work: -:: code:: bash +.. code:: sh python -c 'from yaml import CLoader' If not: -:: code:: bash +.. code:: sh pip uninstall pyyaml pip --no-cache-dir install pyyaml