mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Use the new obarray type for the initial obarray
This can improve performance a lot, especially after the obarray has been fed many symbols. * src/lread.c (OBARRAY_SIZE): Remove. (load_path_check): Create an obarray object instead of a vector.
This commit is contained in:
parent
462d8ba813
commit
3ea77c735d
1 changed files with 1 additions and 4 deletions
|
|
@ -5446,13 +5446,10 @@ DEFUN ("internal--obarray-buckets",
|
|||
return Fnreverse (ret);
|
||||
}
|
||||
|
||||
#define OBARRAY_SIZE 15121
|
||||
|
||||
void
|
||||
init_obarray_once (void)
|
||||
{
|
||||
/* FIXME: use PVEC_OBARRAY */
|
||||
Vobarray = make_vector (OBARRAY_SIZE, make_fixnum (0));
|
||||
Vobarray = make_obarray (15);
|
||||
initial_obarray = Vobarray;
|
||||
staticpro (&initial_obarray);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue