octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Would caching help?


From: Jaroslav Hajek
Subject: Re: Would caching help?
Date: Tue, 31 Mar 2009 12:13:23 +0200

On Tue, Mar 31, 2009 at 8:22 AM, Andreas Romeyke <address@hidden> wrote:
> Dear Octave-Developers,
>
> In a special case I could downsize the time of loadpath::do_find_file()
> with following patch by memoizing this method from 11% to <1% of
> execution time.
>
> Please feel free to use it. The size of the memo could be changed, but
> 32 means a good compromise (11% of time to <1% of time).
>

Is this supposed to speed-up load, fopen etc? Would you post the
benchmark you  used? It seems to me this is going to break things up
if a different file with the same name is created earlier in the load
path after a file has been cached.


> The same thing is possible to add to
> symbol_table::symbol_record::find() if we could serialize the
> tree_argument-list (and to octregexp_list()) with minor cost and in
> respect of internal state I think. Another improvement will be if the
> std::map-call is replaced by a specialized priority-queue to implement
> a LRU-strategy.
>
> Do you have any comments?
>

Can you explain this in more detail?



-- 
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]