Unable to handle big profile files
smhmd opened this issue · comments
Describe the bug
I have a profile file with 23,000 lines that used to work just fine. With 1.0.0
(and now 1.0.2
), hostctl
no longer works.
hostctl status
didn't work. I removed all profiles to start fresh and the big file would not be add
ed --from
.
To Reproduce
Steps to reproduce the behavior:
sudo hostctl add nsfw --from
https://github.com/smhmd/dotfiles/blob/master/.config/hosts/nsfw-q
(there's an idea. Profile files--from
URLs.)
Expected behavior
hostctl
to load the profile
System
OS: Linux
Additional context
Loading that profile worked in 0.10.x
.
It does work, but it take 4 or 5 minutes if you add -q
or not. I'll look into it.
For a point of reference, it was as instantaneous as you can cat
the file in 0.x
.
fixed on v1.0.3. tested with your example profile.
as reference, the issue was related to the uniqueness check of domains on a profile. I removed the check for now.
You can add it as a flag -u,--uniq
?
added --uniq
to v1.0.4 👍