Changeset 5308


Ignore:
Timestamp:
01/01/04 18:24:03 (17 years ago)
Author:
piso
Message:

MAKE-HASH-TABLE: supply reasonable defaults for REHASH-SIZE and REHASH-THRESHOLD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/make-hash-table.lisp

    r3738 r5308  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: make-hash-table.lisp,v 1.3 2003-09-14 01:37:57 piso Exp $
     4;;; $Id: make-hash-table.lisp,v 1.4 2004-01-01 18:24:03 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    2020(in-package "SYSTEM")
    2121
    22 (defun make-hash-table (&key (test 'eql) (size 11) (rehash-size nil)
    23            (rehash-threshold nil))
     22(defun make-hash-table (&key (test 'eql) (size 11) (rehash-size 1.5)
     23           (rehash-threshold 0.75))
    2424  (setq test (coerce-to-function test))
    2525  (unless (and (integerp size) (>= size 0))
Note: See TracChangeset for help on using the changeset viewer.