[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make-hash-table :size
From: |
Oliver Scholz |
Subject: |
Re: make-hash-table :size |
Date: |
Sun, 29 Aug 2004 23:48:29 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) |
Oliver Scholz <alkibiades@gmx.de> writes:
> Oliver Scholz <alkibiades@gmx.de> writes:
> [...]
>> I assume that you use some extended CL compatibility package other
>> than the one that comes with stock Emacs? If that one overwrites
>> Emacs' `assoc' (which is implemented in C) with a function implemented
>> in Lisp, that could explain the profiling differences.
> [...]
>
> Indeed: Using actual calls to cl.el's `assoc*' for comparision:
>
> Function Name Call Count Elapsed Time Average Time
> ================= ========== ============ ============
> test-cl-assoc 10000 0.3100000000 3.10...e-005
> test-alist-access 10000 0.09 9e-006
> test-hash-access 10000 0.05 5e-006
Hmph. Well, you have to take elp's results with a grain of salt ...
Function Name Call Count Elapsed Time Average Time
================= ========== ============ ============
test-cl-assoc 10000 0.16 1.6e-005
test-alist-access 10000 0.02 2e-006
test-hash-access 10000 0.01 1e-006
Function Name Call Count Elapsed Time Average Time
================= ========== ============ ============
test-cl-assoc 10000 0.1800000000 1.8e-005
test-hash-access 10000 0.02 2e-006
test-alist-access 10000 0.02 2e-006
Function Name Call Count Elapsed Time Average Time
================= ========== ============ ============
test-cl-assoc 10000 0.1810000000 1.81...e-005
test-hash-access 10000 0.01 1e-006
test-alist-access 10000 0.0 0.0
Function Name Call Count Elapsed Time Average Time
================= ========== ============ ============
test-cl-assoc 10000 0.2100000000 2.10...e-005
test-hash-access 10000 0.03 3e-006
test-alist-access 10000 0.02 2e-006
Oliver
--
13 Fructidor an 212 de la Révolution
Liberté, Egalité, Fraternité!
- make-hash-table :size, Joost Kremers, 2004/08/23
- Re: make-hash-table :size, Stefan Monnier, 2004/08/23
- Re: make-hash-table :size, Kai Grossjohann, 2004/08/28
- Message not available
- Re: make-hash-table :size, Pascal Bourguignon, 2004/08/28
- Re: make-hash-table :size, Oliver Scholz, 2004/08/29
- Re: make-hash-table :size, Pascal Bourguignon, 2004/08/29
- Re: make-hash-table :size, Oliver Scholz, 2004/08/29
- Re: make-hash-table :size, Oliver Scholz, 2004/08/29
- Re: make-hash-table :size,
Oliver Scholz <=
- Re: make-hash-table :size, Pascal Bourguignon, 2004/08/29