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

Optimize merging Module => 0 into requirements #15

Closed
wants to merge 1 commit into from

Conversation

Leont
Copy link
Member

@Leont Leont commented Dec 14, 2014

This can be a rather significant bottleneck in merge heavy conditions such as an
autoprereqs implementation.

This can be a rather significant bottleneck in merge heavy conditions such as an
autoprereqs implementation.
@dagolden
Copy link

Most of the range code depends on versions being objects so that comparison
functions do the right thing (and coerce accepts() operands).

I think that rather than ->with_minimum(0), it needs to be
with_minimum(version->new(0), which should still be faster than the existing
code.

@Leont
Copy link
Member Author

Leont commented Dec 17, 2014

Most of the range code depends on versions being objects so that comparison functions do the right thing (and coerce accepts() operands).

I think that rather than ->with_minimum(0), it needs to be with_minimum(version->new(0), which should still be faster than the existing code.

I didn't have that impression, and I didn't break any tests (in either CPAN::Meta::Requirements or CPAN::Meta). I guess more tests are needed.

@dagolden
Copy link

Agreed. Maybe accepts raw v strings.
On Dec 17, 2014 7:32 AM, "Leon Timmermans" notifications@github.com wrote:

Most of the range code depends on versions being objects so that
comparison functions do the right thing (and coerce accepts() operands).

I think that rather than ->with_minimum(0), it needs to be
with_minimum(version->new(0), which should still be faster than the
existing code.

I didn't have that impression, and I didn't break any tests (in either
CPAN::Meta::Requirements or CPAN::Meta). I guess more tests are needed.


Reply to this email directly or view it on GitHub
#15 (comment)
.

@dagolden
Copy link

Fixed by #17

@dagolden dagolden closed this Dec 23, 2014
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.

None yet

2 participants