LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Why application on linux running slow compare on Windows? (https://www.linuxquestions.org/questions/linux-general-1/why-application-on-linux-running-slow-compare-on-windows-28415/)

garyura 08-21-2002 04:19 AM

Why application on linux running slow compare on Windows?
 
I just want to know why application running on linux is quiet a bit slow if compare to windows. Is that because of the way they program or becouse the language that are using. Like mozilla running slow on both linux & windows. TQ for any oppinion.

nautilus_1987 08-21-2002 04:29 AM

I think applications in console are running more faster then in Windows, but if you mean X-Windows, ofcourse the programs run slower than in Win. That's because X-Windows is an independent process for linux and if it crashes you can always return to the console and start it again :)

Also it depend on what file system you use :) Hans Reiser's fs rules( I think :)

shassouneh 08-26-2002 11:19 PM

This is easy. Microsoft Windows was written with C. KDE (the graphical shell you most probably are running on linux) was written with C++.

C++ is a slower language than C due to the overhead it has with classes and polymorphism.

So its natural that something written with C (like windows) would run faster than something written with C++ like KDE. :)

neo77777 08-26-2002 11:25 PM

And something written in C for linux runs much faster then anything that has been written in C for windows - read linux kernel

gusgorman 08-27-2002 10:41 AM

Quote:

Originally posted by shassouneh
This is easy. Microsoft Windows was written with C. KDE (the graphical shell you most probably are running on linux) was written with C++.

C++ is a slower language than C due to the overhead it has with classes and polymorphism.

So its natural that something written with C (like windows) would run faster than something written with C++ like KDE. :)

well that can also depend on the programmer. you could still write a slow app in C, likewise things can still be lightening fast in C++. Maybe KDE is a bit bloated ( dunno - i havent used in for ages ).

anyway - most of linux is written in C, and the apps i run on my linux installation all run lightening fast ( on a PIII 450hz ).

llama_meme 08-27-2002 10:58 AM

The windows kernel is written in C++, so I don't think shassouneh's argument is right.

If programs run slower on Linux, it's probably because of the X-Windows overhead as nautilus_1987 said (X-Windows is incredibly overengineered for desktop use, it runs over TCP/IP on your local machine).

As for mozilla, it's slow because its user interface is mainly written using javascript, which slows everything down.

Alex

shassouneh 08-27-2002 07:42 PM

You guys may be right. I was under the impression that Windows was faster because it was written with C, as opposd to C++ for KDE.
As for programs running slow, I must agree with garyura. I'm running on an Athlon XP 1500+ with 256MB DDR, and applications launch lightning fast in Windows, but much MUCH slower in KDE3 (I'm running SuSE 8.0).
I've heard rumors that SuSE 8 was a slow distro, but I don't know.

Anyways, I will be glad to accept my mistakes if I am indeed mistaken. Sorry for any confusion I might have caused :(

m_thangbk 08-27-2002 09:47 PM

I must agree with you guys. I'm running Ms Office under CrossOver Office in RH 7.3. It's still much faster than OpenOffice :(.
OpenOffice is damn slow! So is KDE 3.

jetblackz 08-27-2002 10:47 PM

Don't forget the way X is based. Windows doesn't need a server to run now does it?

shassouneh 08-27-2002 11:20 PM

m_thangbk, that is not entirely true. OpenOffice is written with Java which is slooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooow. Mictrosoft Office was written either in C or C++, which is waaaaay faster than Java, as anybody can easily tell you :)

garyura 08-28-2002 12:52 AM

I here that now C# also can be run in linux. So why not try to develop in C# (I here that it run faster that Java) instead of java. Beside that it's also OS portable what.

Malicious 08-28-2002 08:27 AM

Quote:

Originally posted by llama_meme

If programs run slower on Linux, it's probably because of the X-Windows overhead as nautilus_1987 said (X-Windows is incredibly overengineered for desktop use, it runs over TCP/IP on your local machine).

Close, but no cigar... The client/server connection is an INET socket for network connections, but the local clients connect with a UNIX domain socket which is a named pipe and does not touch the IP stack. You can verify this with lsof , with X running, and looking for the files that X has open. Most likely there will be an IPv4 socket listening for network connections and a bunch of unix domain sockets using inodes in /tmp that have path names like /tmp/.X11-unix/X0.

Personally, I have found that if you are running X with a lot of open windows, you should close the windows and turn on the air conditioning.

MasterC 08-28-2002 08:45 AM

Quote:

Originally posted by Malicious

Personally, I have found that if you are running X with a lot of open windows, you should close the windows and turn on the air conditioning.

:cool:

I have a sort of contribution here...

When I put regular pump gas at ~87 Octane in my race car, I can run decent times. but...
When I put JP5 or ~110 Octane Fuel in my car, I can blast out significantly faster times.

Although not the best comparison, I have my car on my brain right now :D

Ok, so what am I saying?
Use programs that do the same thing as you used to do winbloze, but that are actually written for Linux. When comparing you will run into a lot of bias, especially when comparing the same program.

Try running mplayer on winbloze. Even with cygwin, I have been unsuccessful. This is not to say you can't, but I am guessing it would be a lot of work, and for what? winbloze already comes with it's own suck media player, just use it.

The only thing I have read that would say "shut up Chad, you are wrong" is the crossover Office info above. Although there may be many other examples, I do think they are going to be 1 program vs 1 program. Why limit yourself? There are alternatives to OO, that are faster. One of the many benefits of using Linux is your WIDE variety of options available.

And I have seen many people speak of programming languages in this thread, so I am thinking it may be safe to assume we have some programmers who are here. If you are unhappy with the speed of a product opening, or if a program falls short of your expectations, guess what, you are on a developing platform, fix it, or join a team and fix it.

I am no programmer, and that is why I seldom complain of programs abilities in Linux, that and I am very impressed with what I have seen so far.

Cool

m_thangbk 08-28-2002 09:24 AM

I'm a Linux fan. In fact, my current job is tied to Linux. I didn't complain about Linux, I only wanted to explain what I was thinking.
The thing I want to say is several major Linux desktop applications still are not as good as the the similar ones in Windoze. Slower and have less features.
You can say that vi is much faster than OO, lynx is much faster than Mozilla but these programs can't be alternatives to OO and Mozilla. IMO, OO is still the best word processor available freely in the Linux world.

MasterC 08-28-2002 10:04 AM

Oh, I really wasn't directing that at anyone in particular. And I didn't mean for that to sound derogatory, I was hoping instead to show the vast library of programs available as alternatives to linux, and if you find one that you would like to improve upon, by all means, do it.

I appologize if my comment seemed something other than that.


All times are GMT -5. The time now is 10:36 AM.