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: Problem with memory usage (R2009a)
Replies: 11   Last Post: Oct 21, 2009 10:20 AM

Advanced Search

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

Posts: 9,822
Registered: 7/26/08
Re: Problem with memory usage (R2009a)
Posted: Oct 21, 2009 7:10 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Outspan <> wrote in message <>...

> even though every single field of the struct is only 8 bytes in size.
> I hope that in its internal representation it's not replicating the
> field names 500K times...

No, the internal fieldnames is not duplicated, other internal "things" (matlab mxArray like) do.

Drop using array of struct if you want to save memory and speed.


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.