Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reduce JsSuccess and JsError instance size
before ``` play.api.libs.json.JsError object internals: OFF SZ TYPE DESCRIPTION VALUE 0 8 (object header: mark) N/A 8 4 (object header: class) N/A 12 1 boolean JsError.isSuccess N/A 13 1 boolean JsError.isError N/A 14 2 (alignment/padding gap) 16 4 scala.collection.Seq JsError.errors N/A 20 4 scala.None$ JsError.asOpt N/A Instance size: 24 bytes Space losses: 2 bytes internal + 0 bytes external = 2 bytes total ``` after ``` play.api.libs.json.JsError object internals: OFF SZ TYPE DESCRIPTION VALUE 0 8 (object header: mark) N/A 8 4 (object header: class) N/A 12 4 scala.collection.Seq JsError.errors N/A Instance size: 16 bytes Space losses: 0 bytes internal + 0 bytes external = 0 bytes total ```
- Loading branch information