Proto: update the workaround which reduces memory allocations
This commit is contained in:
@@ -151,7 +151,7 @@ private fun renamePackagesInSingleFile(javaFile: File) {
|
||||
javaFile.readLines().joinToString(LineSeparator.getSystemLineSeparator().separatorString) { line ->
|
||||
line.replace("com.google.protobuf", "org.jetbrains.kotlin.protobuf")
|
||||
// Memory footprint optimizations: do not allocate too big bytes buffers that effectively remain unused
|
||||
.replace(" unknownFieldsOutput);", " unknownFieldsOutput, 1);")
|
||||
.replace(" unknownFieldsOutput);", " unknownFieldsOutput, 1);")
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user