[holger krekel] > ... > But anyway, isn't reading and counting still a faster technique than > using readlines() esp. for larger files? How should I know <wink>? readlines() *is* reading and counting under the covers, but at C speed. So the question is whether and when you can program correct chunking at Python speed that's faster than the time readlines() takes to build line objects into a list. Try it and time it.
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