Skip to content

Change CLI to use an async generator to read word list lines #1

@cognisent

Description

@cognisent

The read from stdin and from the word list file could be wrapped in an async generator to avoid having to load the whole file into memory at once. This would require manually extracting the newline-delimited words and then yielding them from the generator.

This would reduce memory usage, but would not completely avoid loading the words into memory as we have to do that to collect the anagram groups.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions