You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
Adding the line: val _ = implicitly[ToEntityMarshaller[JsArray]] to a scala program that usually compiles in less than 10 seconds and less than 2GB heap causes it to "run forever" even if I give it 8GB heap (it eventually complains about GC at the 2GB heap level)
The line above simply distills the problem, normally I would hit this when turning a Play Json object that contains (or is) a JsArray into an HttpEntity when, for example, rendering an HTTP Response in akka http.
If I provide an implicit marshaller in the local scope, then (a) the compiler complains that I have an unused local val and (b) completes compilation as normal so it appears to be taking advantage of the Marshaller nevertheless.
implicit val _ = Marshaller.strict[JsArray, MessageEntity] { t =>
Marshalling.WithFixedContentType(ContentTypes.`application/json`, () => {
ByteString(Json.stringify(t).getBytes)
})
}
Adding the line:
val _ = implicitly[ToEntityMarshaller[JsArray]]
to a scala program that usually compiles in less than 10 seconds and less than 2GB heap causes it to "run forever" even if I give it 8GB heap (it eventually complains about GC at the 2GB heap level)The line above simply distills the problem, normally I would hit this when turning a Play Json object that contains (or is) a JsArray into an HttpEntity when, for example, rendering an HTTP Response in akka http.
If I provide an implicit marshaller in the local scope, then (a) the compiler complains that I have an unused local val and (b) completes compilation as normal so it appears to be taking advantage of the Marshaller nevertheless.
The text was updated successfully, but these errors were encountered: