LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-21-2002, 04:19 AM   #1
garyura
LQ Newbie
 
Registered: Apr 2002
Distribution: Slackware 8.1
Posts: 22

Rep: Reputation: 15
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.
 
Old 08-21-2002, 04:29 AM   #2
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
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
 
Old 08-26-2002, 11:19 PM   #3
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Rep: Reputation: 30
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.
 
Old 08-26-2002, 11:25 PM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
And something written in C for linux runs much faster then anything that has been written in C for windows - read linux kernel
 
Old 08-27-2002, 10:41 AM   #5
gusgorman
Member
 
Registered: Mar 2002
Location: uk
Distribution: slackware-9b, mandrake-8.1
Posts: 50

Rep: Reputation: 15
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 ).
 
Old 08-27-2002, 10:58 AM   #6
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
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
 
Old 08-27-2002, 07:42 PM   #7
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Rep: Reputation: 30
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
 
Old 08-27-2002, 09:47 PM   #8
m_thangbk
LQ Newbie
 
Registered: Jul 2002
Location: Ha Noi, Viet Nam.
Distribution: MDK 8.0, MDK 8.1, RH 7.2, RH 7.3
Posts: 11

Rep: Reputation: 0
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.
 
Old 08-27-2002, 10:47 PM   #9
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Don't forget the way X is based. Windows doesn't need a server to run now does it?
 
Old 08-27-2002, 11:20 PM   #10
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Rep: Reputation: 30
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
 
Old 08-28-2002, 12:52 AM   #11
garyura
LQ Newbie
 
Registered: Apr 2002
Distribution: Slackware 8.1
Posts: 22

Original Poster
Rep: Reputation: 15
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.
 
Old 08-28-2002, 08:27 AM   #12
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
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.
 
Old 08-28-2002, 08:45 AM   #13
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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.


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

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
 
Old 08-28-2002, 09:24 AM   #14
m_thangbk
LQ Newbie
 
Registered: Jul 2002
Location: Ha Noi, Viet Nam.
Distribution: MDK 8.0, MDK 8.1, RH 7.2, RH 7.3
Posts: 11

Rep: Reputation: 0
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.
 
Old 08-28-2002, 10:04 AM   #15
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare to other linux distro, fedora runs freaking slow..... hkl8324 Fedora 9 07-07-2005 02:44 AM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM
Running application after installing(New to linux) farrukh Linux - General 2 05-07-2004 03:42 AM
Running third party application after installing(New to linux) farrukh Linux - Software 1 05-06-2004 03:15 PM
Windows running slow after install of Redhat ? huno Linux - General 21 03-02-2003 06:29 PM


All times are GMT -5. The time now is 02:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration