Skip to content

"thefuck" typically loads slower that I manually type the command #576

@vi

Description

@vi
$ time echo q | python /.../thefuck/f qqq
qrq [enter/↑/↓/ctrl+c]
...

real	0m0.513s
user	0m0.390s
sys	0m0.110s

# echo 1 > /proc/sys/vm/drop_caches

$ time echo q | python /mnt/src/git/thefuck/f qqq
qrq [enter/↑/↓/ctrl+c]
...

real	0m5.646s
user	0m0.490s
sys	0m0.160s

And it is rarely actually in cache and I need it. It's HDD, not SSD.

# echo 1 > /proc/sys/vm/drop_caches

$ time echo q | strace -cw python /mnt/src/git/thefuck/f qqq
qrq [enter/↑/↓/ctrl+c]...
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 80.89    3.777269         273     13845           read
  7.53    0.351812        2814       125           getdents
  5.47    0.255403          23     10895       679 stat
  2.14    0.099991           7     15236           fstat
  1.94    0.090694           6     14036         8 lseek
  0.71    0.033002           9      3674      2254 open
  0.52    0.024497       24497         1           execve
...
------ ----------- ----------- --------- --------- ----------------
100.00    4.669910                 61776      3435 total

real	0m5.945s
user	0m0.740s
sys	0m0.950s

Version 60497b9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions