Re: tuning - corrected shootout entry
- From: Kenny Tilton <ktilton@xxxxxxxxxx>
- Date: Mon, 06 Jun 2005 00:45:19 GMT
Eric Lavigne wrote:
Was the problem that *ht* not clear after the run, or that it was populated when a run started? I gather the latter. The most reliable way to make sure X is clear when a run starts is to clear X at the start of the run. It also eliminates the confusion to someone of wondering why on earth the *ht* is being cleared as the last step.
Makes sense. I also like having the hashtable still full after a run so I can take a peak inside ^^
Yes, I almost mentioned that.
My reasoning was that it looked kinda strange to clear a hashtable when it hasn't been filled yet (first run).
Agreed. But if I see a standalone chunk of code begin with (clrhash *ht*), I know that somewhere there is a (defparametr *ht* (mht)) or (setf *ht* (mht)), ie that there is a hash table object just sitting in *ht*, and with that same realization comes understanding of the opening (clrhash *ht*).
The main thing is to make sure it is cleared between runs, which will happen in either case. Anyway, it is moved to the front for now.
Did you try the: (let ((*ht*) (mht))... approach to see if that cured the performance hit? Mind you, you then have to return *ht* so you can inspect it.
-- Kenny
Why Lisp? http://lisp.tech.coop/RtL%20Highlight%20Film
"If you plan to enter text which our system might consider to be obscene, check here to certify that you are old enough to hear the resulting output." -- Bell Labs text-to-speech interactive Web page
.
- Follow-Ups:
- Re: tuning - corrected shootout entry
- From: Eric Lavigne
- Re: tuning - corrected shootout entry
- References:
- tuning - corrected shootout entry
- From: Eric Lavigne
- Re: tuning - corrected shootout entry
- From: Kenny Tilton
- Re: tuning - corrected shootout entry
- From: Eric Lavigne
- Re: tuning - corrected shootout entry
- From: Eric Lavigne
- Re: tuning - corrected shootout entry
- From: Kenny Tilton
- Re: tuning - corrected shootout entry
- From: Eric Lavigne
- tuning - corrected shootout entry
- Prev by Date: Re: Ugly loop
- Next by Date: Re: tuning - corrected shootout entry
- Previous by thread: Re: tuning - corrected shootout entry
- Next by thread: Re: tuning - corrected shootout entry
- Index(es):
Relevant Pages
|