--
You received this message because you are subscribed to the Google Groups "ScalaPB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalapb+u...@googlegroups.com.
To post to this group, send email to sca...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalapb/34c755ae-f18d-474b-8727-d9324a341729%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Actually, which version of Scala are you using? I can reproduce this the problem you are seeing in 2.12.4, but not in 2.12.8 and 2.13.0.
On Fri, Jul 5, 2019 at 1:47 PM Nadav Samet <thes...@gmail.com> wrote:
Hi David,It looks like for each field we generate `withX` and `addX` which calls the case class's `copy()`. Scala's compiler expands the copy() calls to something that is proportional in size to the number of fields. I am not seeing any method that is larger than 64k though so I am not sure what precisely is triggering this error.However, we can add a flag that makes ScalaPB not generate the various withX, addX, clearX methods - feel free to file an issue if that helps. In any case, I'd advise splitting this large message into multiple messages.
On Fri, Jul 5, 2019 at 11:47 AM David Greenberg <dsg123...@gmail.com> wrote:
Hello, I am trying to generate a protobuf which has 200 fields, all of which are repeated doubles. However, scalapb isn't able to write this, because the class file is too large.--Is there a way to reduce the code size with flags or params to ScalaPB, or do I just need to split this message into multiple messages? Is there anything I could implement to make the codegen more efficient for this less common use case?Thank you,David
You received this message because you are subscribed to the Google Groups "ScalaPB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sca...@googlegroups.com.
To post to this group, send email to sca...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalapb/34c755ae-f18d-474b-8727-d9324a341729%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---Nadav---Nadav
To unsubscribe from this group and stop receiving emails from it, send an email to scalapb+u...@googlegroups.com.
To post to this group, send email to sca...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalapb/b6fbcf1a-5da8-4442-b10e-396643088f4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalapb/b6fbcf1a-5da8-4442-b10e-396643088f4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---Nadav