[
https://issues.apache.org/jira/browse/IGNITE-29094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ignite TC Bot updated IGNITE-29094:
-----------------------------------
Ignite Flags: Release Notes Required (was: Docs Required,Release Notes
Required)
> 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
(v8.20.10#820010)