摘要:
Techniques are described for reading a plurality of data packets, which can be communicated over a network, without sacrificing the efficiency of network operation, and for reading data packets communicated over a network without unnecessary memory copies. A receive buffer of a first size, which is at least twice a maximum size of data packets in the plurality of data packets, is used. A first amount of data is read into the receive buffer and the size of a last packet contained within the first amount of data is determined. The size of an unread portion of the last read packet is determined and a second amount of data, which is equal to size of an unread portion of the last read packet, is then read into the receive buffer.
摘要:
An end system representing a database server or a database client determines whether to send data in compressed format, and sends the data in a compressed format only if it is determined to send the data in compressed format. In an embodiment implemented using software instructions, a function (set of instructions) is implemented to return one logical value to send data in compressed format and other logical value otherwise.