Accelerate YAML operations with LibYAML

Patch PyYAML (via the pylibyaml library) to automatically enable the
LibYAML parser and emitter, which are faster than the Python versions.

https://pypi.org/project/pylibyaml/

Change-Id: Iaddc0f30ed99b1f9a999f5365e9e8bf43349b82f
This commit is contained in:
Phil Sphicas 2020-09-25 08:07:49 +00:00
parent 3b2e89c2fd
commit caa7f22b50
5 changed files with 8 additions and 2 deletions

View File

@ -11,3 +11,5 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import pylibyaml # noqa: F401 # patch pyyaml to use libyaml bindings

View File

@ -1,4 +1,5 @@
PyYAML==5.1
pylibyaml~=0.1
PyYAML~=5.3.1
pyghmi==1.0.18
netaddr
falcon

View File

@ -53,6 +53,7 @@ PTable==0.9.2
pycadf==2.8.0
pycrypto==2.6.1
pyghmi==1.0.18
pylibyaml==0.1.0
pymongo==3.6.1
pyparsing==2.2.1
python-dateutil==2.7.3
@ -60,7 +61,7 @@ python-editor==1.0.3
python-keystoneclient==3.17.0
python-mimeparse==1.6.0
pytz==2018.5
PyYAML==5.1
PyYAML==5.3.1
redfish==2.0.1
repoze.lru==0.7
requests==2.20.0

View File

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import pylibyaml # noqa: F401 # patch pyyaml to use libyaml bindings
import yaml
import pytest

View File

@ -1,3 +1,4 @@
import pylibyaml # noqa: F401 # patch pyyaml to use libyaml bindings
import yaml
import jsonschema
import pkg_resources