Skip to content

Commit 435a003

Browse files
committed
Review feedback
1 parent 51499fb commit 435a003

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/io/sas/sas.pyx

+2
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ cdef class Parser:
439439
self.current_row_in_file_index += 1
440440

441441

442+
# The following are faster versions of struct.unpack that avoid the overhead of
443+
# Python function calls. They may be called up to (n_rows * n_cols) times.
442444
def read_float_with_byteswap(const uint8_t *data, bint byteswap):
443445
cdef float res = (<float*>data)[0]
444446
if byteswap:

0 commit comments

Comments
 (0)