[emacs-w3m:13933] emacs-w3m slow, and various versions of it

Samuel Wales <[email protected]> Fri, 9 Jun 2023 15:19:38 -0700
Newsgroups gmane.emacs.w3m
Message-ID <CAJcAo8uBQrsqCJ4OnWXTK8W5OY-LPXrjBoS8_nozjvgj-OzZ0w@mail.gmail.com>
moseying into 27 from 26 as my luddite practices have it, i find that
the first invocation of emacs-w3m's w3m command takes 8s or so
[profile below] which
is slower.  subsequent invocation is fast.  any clues?  why the
mailcap?

i am using debian w3m-el-snapshot version:

w3m-el-snapshot:
  Installed: 1.4.632+0.20181112-2
  Candidate: 1.4.632+0.20181112-2
  Version table:
 *** 1.4.632+0.20181112-2 500
        500 https://deb.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status

i have tried the cvs version as i used to do, but perhaps it on longer
exists [i don't know cvs at all]:

$ cvs -q -d:pserver:[email protected]:/storage/cvsroot co emacs-w3m
Fatal error, aborting.
anonymous: no such user

here is the profile:

 - command-execute                                                1985  93%
 - autoload-do-load                                              1917  90%
  - defvar                                                       1895  89%
   - byte-code                                                   1894  89%
    - mailcap-mime-info                                          1885  88%
     - mailcap-parse-mailcaps                                    1851  87%
      - mailcap-parse-mailcap                                    1564  73%
       + mailcap-mailcap-entry-passes-test                        621  29%
         mailcap-replace-regexp                                   188   8%
       + mailcap-parse-mailcap-extras                             104   4%
         mailcap-add-mailcap-entry                                 71   3%
       + insert-file-contents                                       7   0%
         #<compiled 0x156271950955>                                 3   0%
       mailcap-possible-viewers                                    11   0%
     + mail-header-parse-content-type                              10   0%
       mailcap-viewer-passes-test                                   3   0%
     + seq-find                                                     1   0%
      regexp-opt                                                    1   0%
  + byte-code                                                      17   0%
 + call-interactively                                              68   3%
+ ...                                                             136   6%
+ w3m-check-current-position                                        1   0%
+ timer-event-handler                                               1   0%


thank you.

-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com