Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: XEmacs hash table representation (was XEmacs builds failing - gnus-spec.el)
Date: Thu, 06 Jun 2013 10:46:30 -0400	[thread overview]
Message-ID: <87d2rzuwjd.fsf@lifelogs.com> (raw)
In-Reply-To: <3108.1370190154@rawbw.com>

On Sun, 02 Jun 2013 09:22:34 -0700 Mike Kupfer <mike.kupfer@xemacs.org> wrote: 

MK> David Engster wrote:
>> It's not about the hash table metadata but about speed. Before Ted
>> rewrote the code, the registry used to do a conversion to/from an alist,
>> and I remember that writing/reading the registry this way was annoyingly
>> slow, at least on slow machines in combination with big registries (mine
>> has about 100.000 entries).

MK> Ah, okay.  Thanks for the clarification.

I've been wondering (in my free time) whether it would make sense to
provide an even faster binary backend for the registry file.

BSON looks pretty good.  Its C implementation is pretty simple.

https://github.com/casualjim/emacs.d/blob/master/elpa/mongo-20120826.14/bson.el
provides a pure ELisp implementation we could use if a C implementation
was not available (in older Emacsen/XEmacsen).

Right now all this is just idle wondering...

>> Of course, one could still do that specially for XEmacs. I guess all it
>> takes is to define a proper ':printer' slot for the registry
>> object. 

MK> For the sake of interoperability, I think that it'd be better to print
MK> the hash table for XEmacs (with print-readably set to t).  I did some
MK> (very) limited testing, and it looked like the printed representations
MK> of hash tables are compatible between Emacs and XEmacs.

They are not, unfortunately...  I forget the exact issues because this
was years ago but there were some annoying cases with the data, both
with the metadata and with the string encodings.

Ted




  reply	other threads:[~2013-06-06 14:46 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-19 19:23 XEmacs builds failing - gnus-spec.el Adam Sjøgren
2013-05-19 21:45 ` Mike Kupfer
2013-05-19 21:58   ` Adam Sjøgren
2013-05-19 22:13     ` Adam Sjøgren
2013-05-19 23:30       ` Adam Sjøgren
2013-05-20  7:39         ` David Engster
2013-05-20 16:01           ` Adam Sjøgren
2013-05-20 16:36             ` Adam Sjøgren
2013-05-20 23:55               ` Katsumi Yamaoka
2013-05-21 21:01                 ` Adam Sjøgren
2013-05-21 23:39                   ` Katsumi Yamaoka
2013-05-22  2:58                     ` Mike Kupfer
2013-05-22  5:45                       ` Katsumi Yamaoka
2013-05-28  0:22                         ` Mike Kupfer
2013-05-31 12:07                           ` Mats Lidell
2013-05-22 20:18                     ` Adam Sjøgren
2013-05-22 20:28                       ` Adam Sjøgren
2013-05-22 20:36                     ` David Engster
2013-05-28  0:43                       ` Mike Kupfer
2013-06-01 22:04                         ` XEmacs hash table representation (was XEmacs builds failing - gnus-spec.el) Mike Kupfer
2013-06-02  8:59                           ` David Engster
2013-06-02 16:22                             ` Mike Kupfer
2013-06-06 14:46                               ` Ted Zlatanov [this message]
2013-06-06 16:06                                 ` Mike Kupfer
2013-05-22  3:02           ` XEmacs builds failing - gnus-spec.el Mike Kupfer
2013-05-22 20:25             ` David Engster
2013-05-28  0:25               ` Mike Kupfer

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=87d2rzuwjd.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.org \
    /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).