The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: growdata and growdata2 - mathworks problem, still ?
Replies: 7   Last Post: Oct 24, 2012 4:24 AM

Advanced Search

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

Posts: 9,850
Registered: 6/7/07
Re: growdata and growdata2 - mathworks problem, still ?
Posted: Oct 23, 2012 9:42 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 10/23/2012 8:25 AM, someone wrote:
> Hi,
> This is from 2007:
> Is it still necessary/advisable/required to do something like "growdata"
> if you want a speed increase and have (very) long increasing arrays ?
> Or did Mathworks see this problem and fixed the problem by using a
> clever compiler that automatically optimizes its way out of this problem?


My suggestion if you can't figure out how to preallocate is "try it and

Better JIT compilation can fix many things but poor coding practice or
algorithms that require much general rearranging of the source code to
handle memory allocation (and particularly _re_allocation aren't likely
to be solvable that way.


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.