[IPython-dev] History

Hans Meine hans_meine at gmx.net
Fri Feb 18 08:06:33 EST 2011


Am Donnerstag, 17. Februar 2011, um 20:36:59 schrieb Satrajit Ghosh:
> are we really in memory trouble these days? or is this more a question of
> load time?

As anecdotal evidence, I once had the problem that it took ages for new (bash) 
shells to start up (sth. > 15s).  It took me quite some debugging (strace 
etc.) to understand that the problem was in fact the readline history, not 
(directly) my startup files.

I like having a history limit of 150,000 commands.  Why not?  Same as MinRK: 
As long as I dimly remember that I solved a particular problem on the 
commandline in the middle of last year, why should my computer have forgotten 
about it?  (Yes, privacy issues might arise, but there are countermeasures 
here, too.)

But I could very well live with magic commands for this use case, i.e. with 
limited readline history.

Am Donnerstag, 17. Februar 2011, um 20:31:38 schrieb MinRK:
> I don't think there's any real penalty to storing both (other than doubling
> the size of a very small file), so might as well.

Here, you're assuming that the file is "very small", while AFAICS it might be 
at least some megabytes.  So why have this redundancy?

Ciao,
  Hans



More information about the IPython-dev mailing list