netdb slow /etc/hosts parsing
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
The parsing of the /etc/hosts file seems to be rather slow and it is frustrating users.
Perhaps increasing the text buffer size helps when reading the file?
Keep the aliases as list rather than string concat the names?
Or store all entries in a trie and reuse entries for the same address to reduce memory allocations?
Some people have 170 000 lines in the file and it causes a huge delay https://github.com/benibela/xidel/issues/2#issuecomment-266758139
Mantis conversion info:
- Mantis ID: 31129
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 35520 (#b9e03c1a)
- Target version: 3.2.0