On Tue, Feb 17, 2009 at 03:56:30PM +0100, Axel Liljencrantz wrote:
> > I searched today for the issue why my fish is so slow and found out,
> > that it belongs to the history. My history is 2 MB big, I deleted it and
> > fish became notable faster!

oh, that's what makes it slow, no wonder then.
my fish_history has 1.8MB

> Interesting. It really shouldn't grow that fast. Maybe the duplicate history
> item removal code has stopped working? 

looks like it: 
sort  ~/.config/fish/fish_history | uniq -c | sort -n | tail
    159 ls -latr
    167 git status
    181 cd
    200 pwd
    212 htop
    227 ls -la
    231 fg
    288 df .
    345 cd -
    348 cd ..
    356 du
    434 git fetch
    943 df
   1126 ls
   1487 date

not sure how much difference it makes though:
grep -v "^#"  ~/.config/fish/fish_history | sort | uniq -u | wc -l
10140
grep -vc "^#"  ~/.config/fish/fish_history
38942

10000 history entries is still a lot.

either way, it would probably be helpful if the execution of the command is
done first, and adding to the history once the command is running. waiting a
second for date to return a result is painful... :-)

greetings, martin.
-- 
cooperative communication with sTeam      -     caudium, pike, roxen and unix
offering: programming, training and administration   -  anywhere in the world
--
pike programmer   working in china                      community.gotpike.org
unix system-      iaeste.(tuwien.ac|or).at                     open-steam.org
administrator     caudium.org                                    is.schon.org
Martin Bähr       http://www.iaeste.or.at/~mbaehr/

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to