Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@SlyCoopers my specs have feature called " go fucking outside and see how beautiful the world is".
-
Even my phone is stronger / faster than my computer... And gradle build is not running. It's walking.
-
Nope. Took it down to ~4-5 sec if it has a reasonable amount of libraries.
That's Android.
I have a jetty server that compiles in 2.4 sec š
LONG LIVE ALIENWARE!!!
š½š½š½š½š½š½ -
In my experience many devs don't know you can make Gradle use more cores and more memory to build (yes I said MORE memory š±).
So libraries are not a problem anymore since they compile in parallel. -
@tankmohit11 ask for a better PC?
If you don't whine about it they won't provide one ;) -
f03n1x65038yGradle builds take less than 10 seconds for the app I'm working on. I'm using an ancient iMac mid 2011, has a i5 2.7ghz and 12 GB ram.
-
f03n1x65038y@antonis179 I'm curious as to how you do this, oh please share your knowledge with us :D
-
@f03n1x
If you weren't being sarcastic:
You can put this in global Gradle properties to affect all projects:
org.gradle.parallel=true org.gradle.daemon=true org.gradle.jvmargs=-Xms256m -Xmx6192
org.gradle.configureondemand=true
//There is also a property to affect how many threads you want which is nice to configure what is best for your CPU but I don't recall it right now
Also keeping things updated makes a difference too. -
f03n1x65038y@antonis179 thanks!, Nope not being sarcastic, I've learnt Android at work, and since I'm the only developer it was through process of elimination and googling, I've yet to touch on the actual features that Android studio actually has.
I've setup Android studio on my PC with this, since I noticed it was a lot slower than on the work iMac. -
@f03n1x just change that 6192m to whatever ram you're prepared to sacrifice ;)
The global Gradle properties file is under your user under .gradle.
After a restart of studio it should show up along with the local gradle properties of the project but in different color (under Android view not project).
Also another killer is using the entire play services lib. That'll kill your build time cause it's huge so just use its submodules -
f03n1x65038y@antonis179 well I'll definitely have a play around with it, thanks again for the advice, I was speculating whether to make this mobile game idea in either Android'sā java version or using c++, and I think I'll experiment with both to find their advantages/disadvantages
I originally made it in c++ with the SDL lib which was going great, just problem was the two time constraint (because I used it as an assignment idea lol), so since I have time I'll redo it again.
Who knows maybe java will be a better fit. Then again SDL made it cross platform lol
Related Rants
Am I the only one who doesn't work an a potato?
undefined
build
gradle