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

add support for cperl and fixed YAML::XS #109

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

rurban
Copy link
Contributor

@rurban rurban commented Feb 17, 2017

Using these fixes for the last 2 years in cperl.
Tested for all major perl versions.

Note: The YAML::XS situation is still unclear, as upstream maintainers were doing nothing
for the last years. (I heard is rather working on a 3.0 than fixing 2.x)
So far only the version is cperl is usable.
I added API support for future SafeLoadFile, which I'll probably have to implement in a fork.
A fast YAML in core is critical for cpan performance. It's 10x faster.

Needs make touchtestdistros

rurban added a commit to perl11/cperl that referenced this pull request Feb 17, 2017
@rurban rurban force-pushed the cperl branch 2 times, most recently from 96d966f to 5bee679 Compare August 27, 2018 18:08
rurban added a commit to perl11/cperl that referenced this pull request Aug 27, 2018
rurban added a commit to perl11/cperl that referenced this pull request Sep 12, 2018
From 5.28.0c
See L<andk/cpanpm#109>
@rurban rurban force-pushed the cperl branch 2 times, most recently from 7242b0e to 9459b3a Compare October 8, 2018 16:16
Reini Urban and others added 9 commits June 14, 2019 15:05
allow cperl c suffices
honor cperl builtin modules
Use the builtin YAML::XS in NonStrict mode.
The previous default YAML is actually the worst choice at all.
* It's not builtin (compared to CPAN::Meta::YAML),
* it's the slowest (and performance matters with CPAN),
* it does not understand YAML::XS yaml,
* it errors on the simpliest YAML violations, where others continue.

YAML::Syck would be a better choice as it does not implement the unsafe
YAML 1.1 spec, but cperl put an improved YAML::XS into core.

Try Safe{Load,Dump}File before trying {Load,Dump}File.
cperl is working on that feature.
for all CPAN modules, scripts and subprocesses.
on cperl, and error on CPAN::Meta::YAML.
Work to support CPAN::Meta::YAML features is ongoing

See [cperl andk#155]
ignore inc with Test::More because it clashes with the modernized
Test::More variant in cperl.
add YAML::XS to t/31sessions.t to be ignored.
Perl::Critic found these violations in "lib/CPAN/FirstTime.pm":
lib/CPAN/FirstTime.pm: Subroutine "init" with high complexity score (154) at
line 774, column 1.  Consider refactoring.  (Severity: 3)
with symlinks crossing mountpoints.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant