Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Compiled Matlab GUI code starts up too slow...
Replies: 24   Last Post: Sep 19, 2013 3:40 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Arda

Posts: 31
Registered: 3/11/09
Re: Compiled Matlab GUI code starts up too slow...
Posted: Aug 19, 2011 7:02 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> Less than 3 seconds.
>
> Opening Matlab has nothing to do with execution, since the application supposes to work on the computer without Matlab. But "the first time"I meant the very first time a newly compiled program is launched, where it needs to unpacked the files and store it somewhere. All successive runs takes 3 seconds - regardless whereas the computer is just restarted or not and Matlab is opened or not.
>


It cant be, shouldnt be! Even the following simplest gui takes 20 seconds to display 'started' when executed for the first time after a restart. Once it starts, speed is pretty much the same for rest (with the case running through Matlab). But if I try again before restarting the computer it takes only 1 or 2 seconds to display 'started'. Unlike yours however, when i restart the computer and try again, i have to wait 20 seconds again! And i must say, my processor is i7..

By the way, i am creating the exe file with deploytool (in 2011a) with default settings..


tic,disp('started')
model=javax.swing.table.DefaultTableModel(num2cell(reshape(magic(10),[],2)),{'a','b'});
table=javax.swing.JTable(model);
sorter=javax.swing.table.TableRowSorter(model);
table.setRowSorter(sorter);
pane=javax.swing.JScrollPane(table);
frame=javax.swing.JFrame('');
frame.add(pane,java.awt.BorderLayout.CENTER);
frame.setSize(300,250);
frame.setVisible(true);
toc,disp('ended')


Date Subject Author
10/13/10
Read Compiled Matlab GUI code starts up too slow...
Sanghee
10/13/10
Read Re: Compiled Matlab GUI code starts up too slow...
ImageAnalyst
10/16/10
Read Re: Compiled Matlab GUI code starts up too slow...
Sanghee
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
Bruno Luong
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
Bruno Luong
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
ImageAnalyst
2/21/12
Read Re: Compiled Matlab GUI code starts up too slow...
Krishan
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
Bruno Luong
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
ImageAnalyst
8/20/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/20/11
Read Re: Compiled Matlab GUI code starts up too slow...
ImageAnalyst
8/20/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/20/11
Read Re: Compiled Matlab GUI code starts up too slow...
Bruno Luong
8/20/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/24/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/24/11
Read Re: Compiled Matlab GUI code starts up too slow...
Bruno Luong
8/20/11
Read Re: Compiled Matlab GUI code starts up too slow...
Yair Altman
5/22/12
Read Re: Compiled Matlab GUI code starts up too slow...
amit pathania
5/22/12
Read Re: Compiled Matlab GUI code starts up too slow...
Yair Altman
7/26/12
Read Re: Compiled Matlab GUI code starts up too slow...
Yair Altman
11/13/12
Read Re: Compiled Matlab GUI code starts up too slow...
Marc
9/19/13
Read Re: Compiled Matlab GUI code starts up too slow...
elbaz samuel

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.