← Back to issue list

snapcraft does not use the C yaml parser

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1787373
Type
issue
State
closed
Author
~chipaca
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Closed without resolution or comments. The report noted slow YAML parsing due to PyYAML's default loader. No changes were made, indicating the issue was abandoned.

Suggested action:

No scores available.

Issue body

PyYAML includes a C implementation of the yaml parser. However, yaml.safe_load does not use it: for that you need to use yaml.load(..., Loader=yaml.CSafeLoader). As snapcraft always does the former, it's very slow for big yamls. Granted big yamls should be avoided, but the performance difference is big enough to notice even in not-so-huge ones.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution or comments. The report noted slow YAML parsing due to PyYAML's default loader. No changes were made, indicating the issue was abandoned.
qwen/qwen3.6-35b-a3b Closed without comments or resolution. The PyYAML C parser performance issue was abandoned. No code changes were implemented to address the slow YAML loading.
qwen3.6-35b-a3b-mtp-q6 Closed without resolution. The report noted that snapcraft used PyYAML's slower Python parser instead of the C implementation, causing performance issues with large YAML files. No fix or follow-up was implemented.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1605541 snapcraft-parser doesn't work snapcraft (launchpad) closed Closed as a regression without resolution. snapcraft-parser 2.13 failed to parse multi-document YAML streams, causing a parser error. The issue was abandoned with no fix or follow-up.
75%
#1495893 snapcraft does not auto-install jsonschema snapcraft (launchpad) closed Closed without resolution. The missing jsonschema dependency causing an ImportError was never addressed. The issue remains abandoned.
71%
#1790455 snapcraft hides error traces snapcraft (launchpad) closed Closed without resolution. The report requested a non-interactive flag to prevent indefinite CI hangs during error reporting, but the issue was abandoned without implementation.
71%
#1448 snapcraft build using manifest.yaml snapcraft closed Closed without discussion or comments. The issue appears abandoned or superseded by newer snapcraft build workflows. No resolution or merge details were recorded.
71%
#1528873 snapcraft produces supposely bad caps formatting in package.yaml snapcraft (launchpad) closed Closed without resolution. References an external Launchpad bug regarding snapcraft caps formatting in package.yaml. No fix or merge occurred, indicating the report was abandoned.
71%
#1608032 snapcraft crashes with useless message on bad YAML snapcraft (launchpad) closed Abandoned. Snapcraft crashed with an unhelpful error on invalid YAML. No fix or follow-up was provided.
71%