You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Dyre Tjeldvoll (JIRA)" <de...@db.apache.org> on 2005/12/19 18:45:31 UTC
[jira] Commented: (DERBY-760) Implement routines that will write/read data from a byte[] in drda format rather than calling getXXX and setXXX methods
[ http://issues.apache.org/jira/browse/DERBY-760?page=comments#action_12360848 ]
Dyre Tjeldvoll commented on DERBY-760:
--------------------------------------
I don't know if it is related, but have noticed that reading Strings from DRDA messages is somewhat inefficient. (DDMReader.readString()) The first problem is that a temporary char[] is allocated to do the decoding, and the initialization of this array seems to be expensive. The second problem is that since it is not possible to compare a String to a DRDA string (byte[]) one ends up decoding and storing strings that have been decoded and stored before.
Please let me know if this is an unrelated issue, and I will create new one. Thanks.
> Implement routines that will write/read data from a byte[] in drda format rather than calling getXXX and setXXX methods
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-760
> URL: http://issues.apache.org/jira/browse/DERBY-760
> Project: Derby
> Type: Improvement
> Components: Network Server, Performance
> Versions: 10.2.0.0
> Reporter: Kathey Marsden
> Priority: Minor
> Fix For: 10.2.0.0
>
> A while back Dan suggested this performance improvement for Network Server.
> Instead of calling the getXXX setXXX methods in Network Server,
> we can implement either a getDRDARow/setDRDARow or
> getDRDAValue/setDRDAvalue methods to bypass the conversion and
> minimize object creation. Perhaps the signature would be
> something like.
> public void getDRDARow(int[] drdaTypes, byte[], startOffset)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira