optimize the multi params request performance of triple in wrap mode (#11672)

This commit is contained in:
一个不知名的Java靓仔 2023-02-27 14:25:39 +08:00 committed by GitHub
parent 4ee5d0251b
commit 4be3c796cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -390,11 +390,12 @@ public class ReflectionPackableMethod implements PackableMethod {
for (String type : argumentsType) {
builder.addArgTypes(type);
}
ByteArrayOutputStream bos = new ByteArrayOutputStream();
for (int i = 0; i < arguments.length; i++) {
Object argument = arguments[i];
ByteArrayOutputStream bos = new ByteArrayOutputStream();
multipleSerialization.serialize(url, serialize, actualRequestTypes[i], argument, bos);
builder.addArgs(bos.toByteArray());
bos.reset();
}
return builder.build().toByteArray();
}