Skip to content

Use libyaml when available for faster schema parsing

Erwan Rouchet requested to merge faster-schema-parsing into master

This uses the LibYAML-based parser when it is available instead of the default Python parser, as suggested in the pyyaml docs. I found this trick randomly in my RSS feeds from this post, and this appears to make loading the Arkindex API schema twice as fast, from 2.5-3 seconds to 1.2-1.5 seconds. LibYAML is already available in python:3.10 and python:3.10-alpine, so it's safe to say that this could speed up most of our Docker images without further intervention.

Merge request reports

Loading