[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 3ea77c735de 5/7: Use the new obarray type for the initial obarray
From: |
Mattias Engdegård |
Subject: |
master 3ea77c735de 5/7: Use the new obarray type for the initial obarray |
Date: |
Fri, 23 Feb 2024 07:16:12 -0500 (EST) |
branch: master
commit 3ea77c735de975ebda707e0e1e8bb5e0adad2bf5
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
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.
---
src/lread.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/lread.c b/src/lread.c
index c4a34c5d73f..49683d02401 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -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);
- master updated (32843c7b36b -> a8f167547bc), Mattias Engdegård, 2024/02/23
- master 462d8ba813e 4/7: Add a proper type for obarrays, Mattias Engdegård, 2024/02/23
- master aa82fe99318 1/7: Use obarray-make instead of make-vector to create obarrays, Mattias Engdegård, 2024/02/23
- master 6803b70c197 6/7: Update NEWS and manual after obarray changes, Mattias Engdegård, 2024/02/23
- master 3beaa3131e7 2/7: Use obarrayp, not vectorp, to detect obarrays, Mattias Engdegård, 2024/02/23
- master 6a182658a53 3/7: Add obarray-clear and use it, Mattias Engdegård, 2024/02/23
- master a8f167547bc 7/7: Replace use of obsolete eshell-kill-output in test, Mattias Engdegård, 2024/02/23
- master 3ea77c735de 5/7: Use the new obarray type for the initial obarray,
Mattias Engdegård <=