-
-
Notifications
You must be signed in to change notification settings - Fork 17.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLN/FIX/PERF: Don't buffer entire Stata file into memory (#49228)
* CLN: StataReader: refactor repeated struct.unpack/read calls to helpers * CLN: StataReader: replace string concatenations with f-strings * CLN: StataReader: prefix internal state with underscore * FIX: StataReader: defer opening file to when data is required * FIX: StataReader: don't buffer entire file into memory unless necessary Refs #48922 * DOC: Note that StataReaders are context managers * FIX: StataReader: don't close stream implicitly * Apply review changes
- Loading branch information
Showing
4 changed files
with
351 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.