Dear howm users,
I wanted to take the opportunity of the recent Kenneth Wyatt's post on the 
mailing list to bring the subject of howm searches (C-c , g). 
In the beginning, the searches were pretty fast, but as time went by, I was 
getting more and more impatient to get the results. It's not very slow, but 
slow enough to discourage me from using howm as a note taking tool anymore.
First, let me show you the howm-search-path and the size of each directory in 
that path (du -sh output) :

ychaouche#ychaouche-PC 12:36:54 ~ $ grep howm .emacs.d/init.el
[...]
;; search other directories in addition to `howm-directory'.
(setq howm-search-path '("~/NOTES/LOG/" "~/DATA/WIKIPAGES/" 
"~/.kde/share/apps/konversation/logs/" "~/.xchat2/xchatlogs/" "~/NOTES/TXT/" 
"~/DATA/BACKUPS/NEWWIKI/data/pages"))
[...]ychaouche#ychaouche-PC 12:37:45 ~ $ du -sh ~/NOTES/LOG/ ~/DATA/WIKIPAGES/ 
~/.kde/share/apps/konversation/logs/ ~/.xchat2/xchatlogs/ ~/NOTES/TXT/ 
~/DATA/BACKUPS/NEWWIKI/data/pages
3.8M    /home/ychaouche/NOTES/LOG/
2.3M    /home/ychaouche/DATA/WIKIPAGES/
33M     /home/ychaouche/.kde/share/apps/konversation/logs/
9.4M    /home/ychaouche/.xchat2/xchatlogs/
1.6M    /home/ychaouche/NOTES/TXT/
1.1M    /home/ychaouche/DATA/BACKUPS/NEWWIKI/data/pages
ychaouche#ychaouche-PC 12:37:50 ~ $


Approximately 50 Megs of text to search, plus the howm directroy itself which 
is less than 5 megs

ychaouche#ychaouche-PC 12:39:49 ~/howm $ dush
8.0K    ./2020
296K    ./2019
1.7M    ./2018
2.2M    ./2017
4.1M    .
ychaouche#ychaouche-PC 12:39:50 ~/howm $
So 55 Megs in all.


For example, a search on "dnssec" has taken approximatively 27 seconds (this 
was measured very poorly with eyesight on the desktop clock, from 12:42:09 PM 
to 12:41:36 PM). This is a little bit discouraging.
My questions : 
1/ Is this expected ? 
2/ If the search is time proportionnal to the size of the data that howm is 
parsing, can I do anything to help it ? 


Yassine.


_______________________________________________
Howm-eng mailing list
[email protected]
https://lists.osdn.me/mailman/listinfo/howm-eng

Reply via email to