Re: Is it a bad sign...
- From: Espen Vestre <espen@xxxxxxxxxx>
- Date: Thu, 30 Oct 2008 22:45:11 +0100
Kenny <kentilton@xxxxxxxxx> writes:
OK, 6.5m symbols. That's a lot, right?
That's a lot. But... I just interned 11.6m symbols into package foobar:
(with-open-file (f "/usr/share/dict/words")
(loop for word = (read-line f nil nil)
while word
do (loop for i below 50
do (intern (format nil "~a~a" (string-upcase word) i) :foobar))))
That took a few minutes, mostly because I forgot to quit the memory
hogs Safari and iPhoto before I told 64 bit LW for mac to do this (my
linux box has 4GB RAM, I tend to forget that 2GB on my MacBook is not
that much for experiments like this, and swapping against a 5400rpm
laptop disk is no fun).
But once it was done, apropos is fast:
FOOBAR 56 > (time (apropos :giraffe :foobar))
Timing the evaluation of (APROPOS :GIRAFFE :FOOBAR)
GIRAFFE8
[stuff deleted]
GIRAFFESQUE44
GIRAFFESQUE42
User time = 0.912
System time = 0.009
Elapsed time = 1.127
Allocation = 78752 bytes
10 Page faults
FOOBAR 57 >
Is AMD any different than Intel, or shouls I save $150?
It's definitely different, but it depends on operating system and
lisp implementation, I guess.
For 64 bit LispWorks on linux, we get much better results with Core 2
than with Opteron - with 32 bit linux/lisp, Opteron and Core 2 are not
that much different. And depending on your application, 64 bit can give
you advantages even for applications with small memory footprint.
--
(espen)
.
- References:
- Is it a bad sign...
- From: Kenny
- Is it a bad sign...
- Prev by Date: Re: Is it a bad sign...
- Next by Date: Re: Global lexical variables?
- Previous by thread: Re: Is it a bad sign...
- Next by thread: Re: Is it a bad sign...
- Index(es):
Relevant Pages
|