Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utils: YAML goes brrrt #2868

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

black-sliver
Copy link
Member

What is this fixing or adding?

Use native/libyaml SafeLoader, which is faster.
Also add tests to validate we don"t break the API.

How was this tested?

With the tests. Also tests succeed when throwing an ImportError in the try block.

Also tests to validate we dont break the API.
@black-sliver black-sliver added the affects: core Issues/PRs that touch core and may need additional validation. label Feb 26, 2024
@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Feb 26, 2024
@black-sliver
Copy link
Member Author

As a side note, since pure python could be "safer": libyaml takes part in OSS-Fuzz, is used by many projects and there haven't been any changes in the last 3 years. The interface between libyaml and pyyaml is written in cython.

@black-sliver black-sliver merged commit c126418 into ArchipelagoMW:main Feb 27, 2024
15 checks passed
@black-sliver black-sliver deleted the faster-yaml branch February 27, 2024 07:44
@github-actions github-actions bot removed the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Feb 27, 2024
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
Also tests to validate we dont break the API.
TheLX5 pushed a commit to TheLX5/Archipelago that referenced this pull request Mar 2, 2024
Also tests to validate we dont break the API.
TheLX5 pushed a commit to TheLX5/Archipelago that referenced this pull request Mar 2, 2024
Also tests to validate we dont break the API.
EmilyV99 pushed a commit to EmilyV99/Archipelago that referenced this pull request Apr 15, 2024
Also tests to validate we dont break the API.
EmilyV99 pushed a commit to EmilyV99/Archipelago that referenced this pull request Apr 15, 2024
Also tests to validate we dont break the API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: core Issues/PRs that touch core and may need additional validation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants