Skip to content

Commit efc76ff

Browse files
Internal change: small performance improvement sending bytes on the
network transport.
1 parent 47208ff commit efc76ff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/src/release_notes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ oracledb `3.4.0 <https://github.com/oracle/python-oracledb/compare/v3.3.0...v3.4
1919
Thin Mode Changes
2020
+++++++++++++++++
2121

22+
#) Internal change: small performance improvement sending bytes on the
23+
network transport.
24+
2225
Thick Mode Changes
2326
++++++++++++++++++
2427

src/oracledb/impl/thin/transport.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ cdef class Transport:
367367
"""
368368
Writes a packet on the transport.
369369
"""
370-
data = bytes(buf._data_view[:buf._pos])
370+
data = buf._data[:buf._pos]
371371
if DEBUG_PACKETS:
372372
self._print_packet("Sending packet", data)
373373
try:

0 commit comments

Comments
 (0)