Maker Pro
Maker Pro

Arduino IDE, slow compile

I watched a video tutorial of sorts where this person was writing a simple code and when he hit the upload button, it compiled and uploaded within seconds. I have a fast machine, that is not the problem. From the time I hit the upload button it takes about 14 seconds for the blink code to be running.

And yes...I have searched google...
 
If you can provide a link to the video and your specs we can provide some intel.

I have had 0 luck programming an Arduino Trinket on my Windows7 machine, but was able to program it very nicely and quickly on my Netbook running XUbuntu.
That was in a large part due to the bootloader and the delay windows has in enumerating the USB device when the reset button is hit to put it in programming mode.
The Apple OS, and Linux derivatives do not suffer from this issue. If you are a windows user you may need to do a little digging to determine a better programmer to use or to find a way to speed up USB enumeration.

That said, the comments above only refer to the actual upload process, the code compiles much quicker on my windows machine than my netbook. Can you help and let us know what part of the process is taking longer?
 
This thread has kind of died, were you able to figure anything out?

I am still unsure what your system specs are or program size/details. Anything other than "it's slow"
 
This thread has kind of died, were you able to figure anything out?

I am still unsure what your system specs are or program size/details. Anything other than "it's slow"

I forgot about this thread. I tried arduino on another computer with very much lower specs and it verified much faster than mine. I have an Alienware M18x with a core i7 3720QM 16 GB ram and an OCZ Vertex4 128gb SSD. The program size does not matter. It still takes the same amount of time to compile.

The other computer took about 4.5 seconds to compile. I do not know the specs on it.
 
If your still interested in figuring out what the cause is you can do some comparative work.
Check the environment variables on both machines, and compare the config files for the Arduino IDE on both.
I am assuming both machines are Windows based?
 
If your still interested in figuring out what the cause is you can do some comparative work.
Check the environment variables on both machines, and compare the config files for the Arduino IDE on both.
I am assuming both machines are Windows based?

Yes, they are windows based. Mine is windows 8.1 pro 64bit and the other is windows 7 (64bit?).

I will get the config files for both and see what may be different. I will post my findings here.

Here is the preferences.txt from my machine. I will not be able to get the preferences from the other machine until monday.

Code:
board=mega2560
browser.linux=mozilla
build.verbose=true
console=true
console.auto_clear=true
console.error.file=stderr.txt
console.length=500
console.lines=4
console.output.file=stdout.txt
editor.antialias=false
editor.caret.blink=true
editor.divider.size=2
editor.divider.size.windows=2
editor.external=false
editor.font=Monospaced,plain,12
editor.font.macosx=Monaco,plain,10
editor.indent=true
editor.invalid=false
editor.keys.alternative_cut_copy_paste=true
editor.keys.alternative_cut_copy_paste.macosx=false
editor.keys.home_and_end_travel_far=false
editor.keys.home_and_end_travel_far.macosx=true
editor.keys.shift_backspace_is_delete=true
editor.languages.current=
editor.tabs.expand=true
editor.tabs.size=2
editor.update_extension=true
editor.window.height.default=600
editor.window.height.min=290
editor.window.width.default=500
editor.window.width.min=400
export.applet.separate_jar_files=false
export.application.fullscreen=false
export.application.platform=true
export.application.platform.linux=true
export.application.platform.macosx=true
export.application.platform.windows=true
export.application.stop=true
export.delete_target_folder=true
last.screen.height=1080
last.screen.width=1920
last.serial.location=632,208,411,379
last.sketch.count=0
last.sketch0.location=710,240,500,600,411
last.sketch0.path=C:\Users\Jared\AppData\Local\Temp\untitled7039582489931282864.tmp\sketch_sep01a\sketch_sep01a.ino
last.sketch1.location=-8,-8,1936,1066,877
last.sketch1.path=G:\Documents\Arduino\Projects\3 LED Flicker\_3_LED_Flicker_ino\_3_LED_Flicker_ino.ino
platform.auto_file_type_associations=false
preproc.color_datatype=true
preproc.enhanced_casting=true
preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.*
preproc.output_parse_tree=false
preproc.save_build_files=false
preproc.substitute_floats=true
preproc.substitute_unicode=true
preproc.web_colors=true
programmer=arduino:avrispmkii
run.display=1
run.options=
run.options.memory=false
run.options.memory.initial=64
run.options.memory.maximum=256
run.present.bgcolor=#666666
run.present.exclusive=false
run.present.exclusive.macosx=true
run.present.stop.color=#cccccc
run.window.bgcolor=#F0F0F0
serial.databits=8
serial.debug_rate=14400
serial.parity=N
serial.port=COM10
serial.stopbits=1
sketchbook.path=D:\My Documents\Arduino
target=arduino
update.check=true
update.id=2150093129626135564
update.last=1410658915014
upload.using=bootloader
upload.verbose=true
upload.verify=true
 
Here is the preferences.txt from the other computer:

Code:
board=uno
browser.linux=mozilla
console=true
console.auto_clear=true
console.error.file=stderr.txt
console.length=500
console.lines=4
console.output.file=stdout.txt
editor.antialias=false
editor.caret.blink=true
editor.divider.size=2
editor.divider.size.windows=2
editor.external=false
editor.font=Monospaced,plain,12
editor.font.macosx=Monaco,plain,10
editor.indent=true
editor.invalid=false
editor.keys.alternative_cut_copy_paste=true
editor.keys.alternative_cut_copy_paste.macosx=false
editor.keys.home_and_end_travel_far=false
editor.keys.home_and_end_travel_far.macosx=true
editor.keys.shift_backspace_is_delete=true
editor.languages.current=
editor.tabs.expand=true
editor.tabs.size=2
editor.window.height.default=600
editor.window.height.min=290
editor.window.width.default=500
editor.window.width.min=400
export.applet.separate_jar_files=false
export.application.fullscreen=false
export.application.platform=true
export.application.platform.linux=true
export.application.platform.macosx=true
export.application.platform.windows=true
export.application.stop=true
export.delete_target_folder=true
last.screen.height=1024
last.screen.width=1280
last.sketch.count=0
platform.auto_file_type_associations=false
preproc.color_datatype=true
preproc.enhanced_casting=true
preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.*
preproc.output_parse_tree=false
preproc.save_build_files=false
preproc.substitute_floats=true
preproc.substitute_unicode=true
preproc.web_colors=true
programmer=arduino:avrispmkii
run.display=1
run.options=
run.options.memory=false
run.options.memory.initial=64
run.options.memory.maximum=256
run.present.bgcolor=#666666
run.present.exclusive=false
run.present.exclusive.macosx=true
run.present.stop.color=#cccccc
run.window.bgcolor=#F0F0F0
serial.databits=8
serial.debug_rate=9600
serial.parity=N
serial.port=COM1
serial.stopbits=1
sketchbook.path=C:\Users\SGC\Documents\Arduino
target=arduino
update.check=true
update.id=4608522926086441996
update.last=1410529734726
upload.using=bootloader
upload.verify=true
 
Aside from computer 1 being setup for verbose and a different COM port, I cant see anything that is different in those files.
 
Just to confirm, it was your machine that was slow and not the other correct?

serial.port=COM10
I also found that the IDE can be slow if there are lots of COM ports, or if there is other software scanning the ports.

Have you come across this?
 
As far as ports are concerned, I went in and changed the Com port to 10. Did that because when i connected my mega, it said the com port was in use.

And yes it is my computer.
 
Should I change the port to a lower number? I don't see how that would affect it.
I don't see how changing it will make a difference...
Another shot in the dark would be comparing windows environment variables then I'm out of ideas. (At least without running a live Linux distro to rule out hardware)
 
I don't see how changing it will make a difference...
Another shot in the dark would be comparing windows environment variables then I'm out of ideas. (At least without running a live Linux distro to rule out hardware)

That could happen...I May get around to doing that. I want to see how my system handles Linux anyway.
 
At this point I think I will just deal with it. It really isn't ghat big of a deal. It just boggles me that a cheap computer is 4 times faster than mine at verifying. I have more time than knowledge at this.

Thanks for your replies guys.
 
Top