Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 5003  / 2 Years ago, tue, november 1, 2022, 11:41:38

I am using eclipse on Ubuntu 10.10 32bit, when I am compiling a huge android project, it is getting slower I have 4GB ram even (which is just 25% used) though its getting slower when I observed further eclipse is using only one CPU and creating 100% load on that where as other CPU is having only 20% load, is this eclipse problem or Ubuntu problem


More From » performance

 Answers
7

Eclipse and the Java Development Kit used by Eclipse has approximately nothing to do with your development, with the development of an Android Application using the standard SDK.



To clarify this point you can consider 3 important facts:




  • you can build a complete Android App from the source without using Eclipse

  • Eclipse is only an IDE for the Android SDK, a group of graphical elements that can speed up your workflow, nothing more and nothing less

  • Eclipse uses a JDK environment when the Android SDK does not ( the A. SDK uses nothing else rather then the SDK itself ), they simply use different environments to run and build apps, so it's simply misleading saying something like "Eclipse not using dual core when compiling a huge Android project"



I think that at this point should be clear the fact that your app is actually compiled by the SDK itself and what you are stressing as bad thing is usually referred as a good thing.



Multithreaded application and, in general, application ( with "application" right now i mean the SDK not your app ) that supports their execution splitted in several jobs, brings a big problem on the table: a good and effective debugging phase.
Let's say that you are compiling something splitted in 4 threads, in the istant X your compiler crash, the question is: which of the 4 is the bad guy? all of them? just 1? 2? 3?



Considering that a tipical use of the Android SDK is not heavily based on multi-threaded design ( with that i mean that a developer can wait 1 or 2 minutes in the worst case scenario, nothing changes and the debug in multi-threaded environment with some concurrency on the go is much more complex and can take you weeks without achieving any results ), the adoption of a multi-threaded design can easily provide more cons than pros, especially during the phase of compiling and debugging.



In the end considering the audience of developers, the target of Android, what an Android application really is, this kind of software design is probably the most appropriate and effective and i will not considering the lack of a multi-threading compiling a bad thing.


[#41634] Wednesday, November 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
smelrop

Total Points: 263
Total Questions: 122
Total Answers: 108

Location: Saudi Arabia
Member since Thu, Jan 28, 2021
3 Years ago
smelrop questions
Mon, Mar 13, 23, 07:22, 1 Year ago
Sun, Feb 5, 23, 13:02, 1 Year ago
Tue, Aug 31, 21, 00:50, 3 Years ago
Sat, Dec 18, 21, 15:18, 2 Years ago
;