Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 11378  / 1 Year ago, fri, march 24, 2023, 2:08:02

I work on Linux and a friend on a Windows 7.



I was amazed about the speed that NetBeans, Eclipse, pgAdmin and other programs open a lot, really, a LOT faster on Linux than on windows.



What is the main difference between Linux and windows kernel that causes that time load difference?



Both machines have exactly the same hardware configuration.


More From » kernel

 Answers
0

This is just my guess, but I think that when you work for a company, where once everything is compiled (converted to binary data, which computers can execute), nobody can see the source code anymore, you tend to be a lot lazier, as it doesn't matter as long as it works.

Linux is open source, so everyone can see the source code if they would wish to do so. If you are lazy, and write a really crappy piece of code which will really slow down the system or something of the sorts, there goes your reputation, as everyone just saw. Developers and users alike. I think that's one of the reasons why open souyce developers tend to be less lazy.



It's also a fact that the core of the Windows kernel was never written with the intention of becoming what it is today (neither was Linux', but they did the effort to optimize the old bits), and developers have simply always been adding and adding on top of it, until the code was so cryptic that nobody could make something out of it anymore. Two properties of messy code is that there's often a lot of redundancy, and that you don't see the links between two pieces of code so easily anymore, which makes that you can't even try to start optimizing it. Just an example (not a cryptic one);



for (int i = 0; i < 20; i++)
{
if (x == y)
{
if (z <= u)
{
goto banana;
}
}
}


The example above could be done much more efficiently;



for (int i = 0; (i < 20) && (x == y) && (z <= u); i++)
{
banana ();
}

[#37589] Friday, March 24, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
finatch

Total Points: 49
Total Questions: 106
Total Answers: 94

Location: Kazakhstan
Member since Mon, Sep 26, 2022
2 Years ago
finatch questions
Sun, Jun 26, 22, 07:28, 2 Years ago
Sat, Mar 12, 22, 00:14, 2 Years ago
Mon, May 17, 21, 15:25, 3 Years ago
Wed, Jun 8, 22, 02:40, 2 Years ago
;