We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51499fb commit 435a003Copy full SHA for 435a003
pandas/io/sas/sas.pyx
@@ -439,6 +439,8 @@ cdef class Parser:
439
self.current_row_in_file_index += 1
440
441
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.
444
def read_float_with_byteswap(const uint8_t *data, bint byteswap):
445
cdef float res = (<float*>data)[0]
446
if byteswap:
0 commit comments