
Anicka Bernathova wrote:
Hello!
Yesterday I have found out that from time to time, when I type a typo, it takes a huge amount of time until a "command of found message" appears and I can continue my work.
Now I am able to reproduce it every time on my rc1 machine:
time sl bash: sl: command not found
real 0m1.289s user 0m0.228s sys 0m0.040s
That's weird. Try running zypper refresh -f (forces a complete refresh including rebuild of the database) and "benchmark" again.
Typing "echo 1 >/proc/sys/vm/drop_caches" enables me to reproduce it every time (not doing it means that it happens at random).
That's what caches are for: to cache data. If you keep dropping them, performance of the programs will be worse.
I am quite sure that our command-not-found package is to blame. I do not know how come it is that slow (I have only some five repositories defined) but it kind of drives me mad.
So first - could you tell me a way to disable this functionality?
Put unset command_not_found_handle in your profile. Or simply uninstall the command-not-found package.
And then, are there any known issues like that? I would like to see this problem fixed but I am afraid we might find out that we simply cannot do any better with Python.
If our users like it, we should probably rewrite it to C then :-(
Read https://bugzilla.novell.com/show_bug.cgi?id=435160 You will learn that rewrite to C would be of no use, because Python code immediately calls wrapped satsolver library which IS written in C. And most of time (if not all of it) is spent there ... -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org