Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion hashtable w/o keys stored...
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
vnikolov  
View profile  
 More options Jan 13 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: vniko...@poboxes.com
Date: 1999/01/13
Subject: Re: hashtable w/o keys stored...
In article <wkiueb2krx....@mit.edu>,
  David Bakhash <ca...@mit.edu> wrote:
(...)

> suppose, ideally, I want a hash table whose keys are strings and whose
> values are objects.  However, I have so many keys, and each key (string)
> is, say 50 characters long.  With 50,000 keys, this can start to really
> swallow up memory.  But if, instead, the objects in the hash buckets
> somehow contain the strings efficiently, then I can create those strings
> when needed, but not store them permanently.

So you need a hash table of a kind different from what Common Lisp
has.  You (seem to) need:

* to pass just one object to the hash table when you do the store
  (instead of one key and one object, as with CL);

* to pass a function to the hash table constructor which will later
  be called on each object being stored to compute the key.

Unless someone has already implemented such tables somewhere,
it is up to you.

Good luck,
Vassil.

Vassil Nikolov <vniko...@poboxes.com> www.poboxes.com/vnikolov
(You may want to cc your posting to me if I _have_ to see it.)
   LEGEMANVALEMFVTVTVM  (Ancient Roman programmers' adage.)

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.