-
Notifications
You must be signed in to change notification settings - Fork 604
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
Create chunks in Stream.fromIterator (#2010) #2013
Conversation
Looks like mima configuration is messed up: If we fix that so it correctly checks binary compatibility, the build will fail on this change. Can you try making it an overload instead? |
…alue to ensure binary compatibility
Mima check is failing with: [error] fs2-core: Failed binary compatibility check against co.fs2:fs2-core_2.12:2.0.0! Found 2 potential problems (filtered 662)
[error] * extension method apply$extension(Boolean,scala.concurrent.ExecutionContext,scala.collection.Iterator,cats.effect.Sync,cats.effect.ContextShift)fs2.internal.FreeC in object fs2.Stream#PartiallyAppliedFromBlockingIterator does not have a correspondent in current version
[error] filter with: ProblemFilters.exclude[DirectMissingMethodProblem]("fs2.Stream#PartiallyAppliedFromBlockingIterator.apply$extension")
[error] * extension method apply$extension(Boolean,scala.collection.Iterator,cats.effect.Sync)fs2.internal.FreeC in object fs2.Stream#PartiallyAppliedFromIterator does not have a correspondent in current version
[error] filter with: ProblemFilters.exclude[DirectMissingMethodProblem]("fs2.Stream#PartiallyAppliedFromIterator.apply$extension")
[error] stack trace is suppressed; run last mimaReportBinaryIssues for the full output |
I have no clue why this has broken the binary compatibility and how to cope with it. Any idea? |
I don't see how this can really break the compatibility. I would suggest excluding it from compatibility checks: ProblemFilters.exclude[DirectMissingMethodProblem]("fs2.Stream#PartiallyAppliedFromIterator.apply$extension"),
ProblemFilters.exclude[DirectMissingMethodProblem]("fs2.Stream#PartiallyAppliedFromBlockingIterator.apply$extension") |
Can you try compiling some code against 2.4.4 that uses fromIterator and then running that compiled code against the current head? |
I did two tests on Scala 2.13, calling |
OK cool, I guess it's a false report by mima. Let's add the exclusions. |
I see you have already added it. Thanks. |
Improves performance of
Stream.fromIterator
andStream.fromBlockingIterator
by creating chunks of requested size, as described in #2010.