map/flatMap/filter/filterWith causes non-termination #7
Comments
|
Yeh, removing |
|
Fixed in b8c4e3a. |
|
Now you too can share in the joy of knowing about |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the sbt console, occasionally using some methods would fail to produce a result
However, this behaviour goes way if the method is not called
map.We also saw this behaviour for a method named
filter.@S11001001 has pointed out that this is due to having
-optimiseturned on, which we do as seen inbuild.sbt. The inliner bumps up the inliner score for methods namemap,foreach,flatMap,filterorwithFilter.Here is a link to the source code to
isMonadicMethodwhich is later referenced in the file.https://github.com/scala/scala/blob/v2.10.3/src/compiler/scala/tools/nsc/backend/opt/Inliners.scala#L153-L158
The text was updated successfully, but these errors were encountered: