[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Loading dynamic docstrings and bytecode more lazily
From: |
Lluís |
Subject: |
Re: Loading dynamic docstrings and bytecode more lazily |
Date: |
Sat, 09 Feb 2013 12:13:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Stefan Monnier writes:
[...]
> Sadly, the result is disappointing. When loading cl-macs.elc (i.e. one
> the files where the change should shine), I see a speed up of 4%.
> Admittedly, this is with a warm cache (basically, I read cl-macs.elc
> many times in a loop), whereas the main point of this optimization is to
> reduce I/O, so it should be more useful in the cold cache situation.
> So maybe, the improvement is more significant in other circumstances.
In Linux you can force the system to empty the disk cache with:
sync ; sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'
Startup time should also serve as an indicator (provided all files are
recompiled).
Lluis
--
"And it's much the same thing with knowledge, for whenever you learn
something new, the whole world becomes that much richer."
-- The Princess of Pure Reason, as told by Norton Juster in The Phantom
Tollbooth