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.
(cherry picked from commit
3ea77c735de975ebda707e0e1e8bb5e0adad2bf5)
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);