We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
many of the collection method have a return type without bound, e.g. Repr
Repr
This means that the bytecode emitted is littered with class cast to the expected type
Not sure what the overhead is. We should measure and see what options there are to improve this
The text was updated successfully, but these errors were encountered:
e.g.
class demo { val in = List(1,2) def process1 = in.map (_+1).distinct.head }
generates
// access flags 0x1 public process1()I ... GETSTATIC scala/collection/immutable/List$.MODULE$ : Lscala/collection/immutable/List$; INVOKEVIRTUAL scala/collection/immutable/List$.canBuildFrom ()Lscala/collection/generic/CanBuildFrom; INVOKEVIRTUAL scala/collection/immutable/List.map (Lscala/Function1;Lscala/collection/generic/CanBuildFrom;)Ljava/lang/Object; CHECKCAST scala/collection/SeqLike INVOKEINTERFACE scala/collection/SeqLike.distinct ()Ljava/lang/Object; CHECKCAST scala/collection/IterableLike INVOKEINTERFACE scala/collection/IterableLike.head ()Ljava/lang/Object; INVOKESTATIC scala/runtime/BoxesRunTime.unboxToInt (Ljava/lang/Object;)I IRETURN
Sorry, something went wrong.
No branches or pull requests
many of the collection method have a return type without bound, e.g.
Repr
This means that the bytecode emitted is littered with class cast to the expected type
Not sure what the overhead is. We should measure and see what options there are to improve this
The text was updated successfully, but these errors were encountered: