Wiktor Sadowski wrote: > >I can see that keeping the file object open could speed things up, > >but is it a polite & decent thing to do? > > Yes, but it would be nice to not fopen/fclose for each > __importer__.get_data. It also does this for each import (I copied this behavior from the PEP 273 implementation). I experimented with keeping the open file object around, and performance hardly went up. Just PS: your computer thinks it's monday.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4