(self)
| 130 | yield line[:-1], raw_bytes_read |
| 131 | |
| 132 | def read(self): |
| 133 | with open(self.file_path, "r", encoding="utf8") as fh: |
| 134 | with mmap.mmap(fh.fileno(), length=0, access=mmap.ACCESS_READ) as mmap_obj: |
| 135 | for line in iter(mmap_obj.readline, b""): |
| 136 | line = line.decode("utf-8") |
| 137 | yield line[:-1] |
| 138 | |
| 139 | def read_slow(self): |
| 140 | with open(self.file_path, "r", encoding="utf8") as fh: |
nothing calls this directly
no outgoing calls
no test coverage detected