[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/hash-table-perf 9b39cee78e3 12/35: * src/print.c (print_object):
From: |
Mattias Engdegård |
Subject: |
scratch/hash-table-perf 9b39cee78e3 12/35: * src/print.c (print_object): Don't print hash table test if `eql`. |
Date: |
Fri, 12 Jan 2024 10:53:24 -0500 (EST) |
branch: scratch/hash-table-perf
commit 9b39cee78e3ca2a669cb2986d3e6963e8c8cbbbe
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
* src/print.c (print_object): Don't print hash table test if `eql`.
Since `eql` is the default, this ensures bidirectional compatibility
while reducing the size of the external representation.
---
src/print.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/print.c b/src/print.c
index 5d94d3fd4de..e5da033d312 100644
--- a/src/print.c
+++ b/src/print.c
@@ -2580,7 +2580,7 @@ print_object (Lisp_Object obj, Lisp_Object printcharfun,
bool escapeflag)
HASH_TABLE_SIZE (h));
strout (buf, len, len, printcharfun);
- if (!NILP (h->test.name))
+ if (!BASE_EQ (h->test.name, Qeql))
{
print_c_string (" test ", printcharfun);
print_object (h->test.name, printcharfun, escapeflag);
- branch scratch/hash-table-perf created (now 8ec0e030b66), Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf a39bca66533 03/35: Decouple profiler from Lisp hash table internals, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf dd89a9fb76d 04/35: Refactor: less layering violation in composite.h, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf 05694f4491d 08/35: ; * src/alloc.c (purecopy_hash_table): Simplify, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf b9b2c5a12a8 10/35: ; * src/fns.c (Fmake_hash_table): ensure `test` is a bare symbol, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf b96f48232ac 11/35: ; * src/lisp.h (struct Lisp_Hash_Table): Add ASCII art., Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf d7dbbc74a00 13/35: * src/print.c (print_object): Don't print empty hash-table data, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf 9b39cee78e3 12/35: * src/print.c (print_object): Don't print hash table test if `eql`.,
Mattias Engdegård <=
- scratch/hash-table-perf 08acca67739 14/35: Don't print or read the hash table size parameter, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf b1218be258a 18/35: Allow zero hash table size, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf 8f608cb4a1c 28/35: Use key Qunbound instead of hash value hash_unused for free entries, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf 93d6326e6c0 32/35: Hash-table documentation updates, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf 1462fca6dce 16/35: Remove rehash-threshold and rehash-size struct members, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf 3b3fea97ecc 22/35: Use hash_idx_t for storing hash indices, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf 58559a83827 29/35: * src/lisp.h (hash_hash_t): Change to uint32_t., Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf 441c4d53cf6 31/35: Don't pretend that hash-table-size is useful, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf a0560e90d3b 26/35: Change hash_idx_t to int32_t on all platforms, Mattias Engdegård, 2024/01/12
- scratch/hash-table-perf 8ec0e030b66 35/35: Combine hash and next vector into a single array, Mattias Engdegård, 2024/01/12