Skip to content

Commit ffb1222

Browse files
committed
PERF: some cython opts
1 parent 63f54a1 commit ffb1222

5 files changed

+212
-151
lines changed

pandas/io/sas/sas7bdat.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import numpy as np
2121
import struct
2222
import pandas.io.sas.sas_constants as const
23-
from pandas.io.sas.saslib import do_read
23+
from pandas.io.sas.saslib import Parser
2424

2525

2626
class _subheader_pointer(object):
@@ -583,7 +583,8 @@ def read(self, nrows=None):
583583
self._byte_chunk = np.empty((nd, 8 * nrows), dtype=np.uint8)
584584

585585
self._current_row_in_chunk_index = 0
586-
do_read(self, nrows)
586+
p = Parser(self)
587+
p.read(nrows)
587588

588589
rslt = self._chunk_to_dataframe()
589590
if self.index is not None:

0 commit comments

Comments
 (0)