[
https://issues.apache.org/jira/browse/IGNITE-29094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132223#comment-18132223
]
Ignite TC Bot commented on IGNITE-29094:
----------------------------------------
Thin JDBC: Improved request marshalling to avoid an unnecessary byte-array copy.
The Release Note field has been filled with the wording above. Please review it
and edit it if needed.
> Get rid of useless byte array creation during thin jdbc request
> ---------------------------------------------------------------
>
> Key: IGNITE-29094
> URL: https://issues.apache.org/jira/browse/IGNITE-29094
> Project: Ignite
> Issue Type: Improvement
> Reporter: Nikolay Izhikov
> Assignee: Nikolay Izhikov
> Priority: Major
> Labels: ise
> Fix For: 2.19
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Currently, useless byte array creation happens during each request.
>
> {noformat}
> /**
> * @param req Request.
> * @throws IOException In case of IO error.
> */
> private void sendRequestRaw(JdbcRequest req) throws IOException {
> int cap = guessCapacity(req);
> BinaryWriterEx writer = BinaryUtils.writer(ctx,
> BinaryStreams.outputStream(cap));
> req.writeBinary(writer, protoCtx);
> synchronized (connMux) {
> send(writer.out().arrayCopy());
> }
> }
> {noformat}
> We can easily simlify this
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)