processing-android icon indicating copy to clipboard operation
processing-android copied to clipboard

Why is compilation so slow?

Open embedream opened this issue 4 years ago • 3 comments

it.s completes the Android mode installation in Processing-4.0b1 , can compile, and execute on the phone, but the compilation time is too slow, a simple program takes more than 30 minutes, what is the reason? I tried SDK downloads automatically and manually locate the SDK directory on Android Studio. No improvement in compile time. Look forward to master to give directions! Thank you very much!

embedream avatar Sep 07 '21 10:09 embedream

That's weird, the sketch compilation should not take more than a few seconds (on a fast computer):

image

Maybe there is something else is happening with your setup. What OS are you using?

codeanticode avatar Mar 13 '22 14:03 codeanticode

Confirming that the build is running fine for me (not slow) on processing 4.

rupeshkumar22 avatar Apr 14 '22 22:04 rupeshkumar22

@embedream try the latest release of the mode compatible with processing 4.0b7, to see if build process is faster. I have not found anything unusual so far.

codeanticode avatar Apr 18 '22 08:04 codeanticode

Confirming that the build is running fine for me (not slow) on processing 4.

Agree with Rupesh, Build LGTM.

ranaaditya avatar Jul 15 '23 19:07 ranaaditya

it.s completes the Android mode installation in Processing-4.0b1 , can compile, and execute on the phone, but the compilation time is too slow, a simple program takes more than 30 minutes, what is the reason? I tried SDK downloads automatically and manually locate the SDK directory on Android Studio. No improvement in compile time. Look forward to master to give directions! Thank you very much!

Hi @embedream , that's weird, normally build should not take more than 10-15 mins in very slow case.

I believe build is slow maybe due to too many java projects / process runnig at same time or maybe your system is low end or having less RAM.

BTW what was your system config during the build ?

Thanks, Aditya

ranaaditya avatar Jul 15 '23 19:07 ranaaditya