Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

Gnus (Emacs Newsreader) FAQ
Section - Q2.22 Base64 decoding and encoding appears to be horribly slow in Pterodactyl Gnus. What can I do about it?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Business Photos and Profiles ]


Top Document: Gnus (Emacs Newsreader) FAQ
Previous Document: Q2.21 How do I use different headers for mail than for news?
Next Document: Q2.23 I don't want HTML to be automatically expanded in mail or news. What can I do?
See reader questions & answers on this topic! - Help others by sharing your knowledge

   Hrvoje Niksic <hniksic@srce.hr> answers:
   Since the current Emacsen do not support base64 in native "C" code,
   Pterodactyl Gnus implements base64 decoding and encoding in Lisp. This
   is inherently slow because base64 operations consists of examining
   each character in turn, and doing arithmetics on them -- repeated for
   thousands of characters. However, Gnus allows you to use an external
   base64 decoder, if you have it.
   
   For example, if you have Nathaniel Borenstein's "metamail" package,
   here is how to tell Gnus to use its `mimencode' program to decode
   base64:
   
(setq base64-decoder-program "mimencode"
      base64-decoder-switches '("-u"))

(setq base64-encoder-program "mimencode")

   Note that, beginning with XEmacs 21.2 and GNU Emacs 20.4, the popular
   Emacsen will support base64 natively, which will be faster than even
   the external encoders, making above hack obsolete.
   
   Also note that uudecoding, as performed by mm-uu, is also done in Lisp
   by default. You can make Gnus use the external Unix decoder like this:
   
(setq mm-uu-decode-function 'uudecode-decode-region-external)

User Contributions:

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA




Top Document: Gnus (Emacs Newsreader) FAQ
Previous Document: Q2.21 How do I use different headers for mail than for news?
Next Document: Q2.23 I don't want HTML to be automatically expanded in mail or news. What can I do?

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
Justin Sheehy <dworkin@ccs.neu.edu>





Last Update March 27 2014 @ 02:11 PM