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

use for_list feature, require perl 5.36 #944

Merged
merged 15 commits into from
Sep 11, 2024
Merged

use for_list feature, require perl 5.36 #944

merged 15 commits into from
Sep 11, 2024

Conversation

shawnlaffan
Copy link
Owner

The for_list feature was introduced in Perl 5.36 and declared stable in 5.40.

It provides faster looping over hashes in cases where one otherwise iterates over keys and then accesses the values.

The update to 5.36 required changes to the CI configs on Windows.

This PR also removes Faster::Maths as stability issues arose when updating the CI. F::M is nice to have but not essential, and requires careful handling anyway given known issues.

No need to assign a variable using a ternary.

We only use it once, and booleans in numeric
context do the same thing as the ternary did
anyway.
This is faster than iterating over keys and
then getting the values.
Needed for for_list feature
A small speedup that will be useful under randomisations
`use experimental` instead of the two step
`use feature; no warnings` idiom
more CI stuff

Appveyor: enable BD tests
GH: cleanup commented code

GH CI windows cache

more appveyoring

GH CI: quieter windows

more appveyor shenanigans

GH CI windows: cache ./local

shogo82148/actions-setup-perl sends modules there,
overriding the env settings

CI appveyor full build again

CI appveyor partial build to trigger cache

CI probing

GH CI: windows use strawberry

GH CI: use shogo82148/actions-setup-perl on windows

GH CI: use perl 5.40 on windows

GH CI: refresh windows cache

GH CI: cache and checkout actions to v4

CI: appveyor to perl 5.38
It seems not to be stable on some systems.
Even the "no faster::Maths" triggers checks
for it being installed.
Simplify the setup in the process.
(Tested and debugged on a separate branch).
@shawnlaffan shawnlaffan merged commit b7d2386 into master Sep 11, 2024
8 checks passed
@shawnlaffan shawnlaffan deleted the multi_for_loops branch September 11, 2024 00:23
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