From: yacinechaouche at yahoo.com (chaouche yacine)
Subject: [Howm-eng 167] Slow searches
Date: Sun, 13 Sep 2020 11:49:49 +0000 (UTC) [thread overview]
Message-ID: <1070022946.1579200.1599997789503@mail.yahoo.com> (raw)
In-Reply-To: <1070022946.1579200.1599997789503.ref@mail.yahoo.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2148 bytes --]
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/howm-eng/attachments/20200913/176be1c5/attachment.html>
next parent reply other threads:[~2020-09-13 11:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1070022946.1579200.1599997789503.ref@mail.yahoo.com>
2020-09-13 11:49 ` yacinechaouche [this message]
2020-09-13 12:31 ` [Howm-eng 169] " khi
2020-09-14 9:14 ` [Howm-eng 170] " yacinechaouche
2020-09-14 12:29 ` [Howm-eng 171] " khi
2020-09-15 9:30 ` [Howm-eng 172] " yacinechaouche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1070022946.1579200.1599997789503@mail.yahoo.com \
--to=howm-eng@lists.osdn.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).