Re: tuning - corrected shootout entry





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

.



Relevant Pages

  • Re: ACBL - Multi-Use 1D Bid
    ... ONE CLUB OR ONE DIAMOND may be used as an all-purpose opening ... bid promising a minimum of 10 high-card ... It does not say that the artificial part of the all-purpose opening ... becomes important to know where your "understanding" that the non- ...
    (rec.games.bridge)
  • Re: Study openings because that is where the game begins
    ... 7> without understanding. ... incidental opening knowledge) the ... one player has and how much ...
    (rec.games.chess.misc)
  • Re: Study openings because that is where the game begins
    ... 7> without understanding. ... incidental opening knowledge) the ... one player has and how much ...
    (rec.games.chess.misc)
  • Re: A polite observation.
    ... have jack for understanding. ... I have this mental picture of you sitting on a couch with bits and pieces of ...
    (rec.photo.darkroom)