patchGNU Octave - Patches: patch #7923, Reducing memory usage in perms:...

 
 

patch #7923: Reducing memory usage in perms: patch attached

Submitted by:  Arun Giridhar <arungiridhar>
Submitted on:  Mon 14 Jan 2013 09:59:40 PM UTC  
 
Category: NonePriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: NoneOpen/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 10 Aug 2013 04:54:43 AM UTC, comment #1:

Thanks for this. I just got around to applying the patch here (http://hg.savannah.gnu.org/hgweb/octave/rev/9336d0e1d1ec). I also added your name to the list of contributors. Thanks again.

Rik <rik5>
Project Administrator
Mon 14 Jan 2013 09:59:40 PM UTC, original submission:

I noticed that calling perms(uint8(1:11)) on a system with 4GB memory thrashed the virtual memory even though the input was only type 8-bit integer. I found that perms was using the default type double in a couple of places internally. I have attached a context diff showing two small changes I made to octave/scripts/specfun/perms.m, which reduce memory usage substantially. In particular, perms(uint8(1:11)) now returns without thrashing virtual memory. Hope this helps.

Arun Giridhar <arungiridhar>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #27264:  perm.diff added by arungiridhar (778B - text/x-patch - Context diff for octave/scripts/specfun/perms.m to reduce internal memory usage)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by arungiridhar (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 10 Aug 2013 04:54:43 AM UTCrik5StatusNone=>Done
      Open/ClosedOpen=>Closed
    Mon 14 Jan 2013 09:59:40 PM UTCarungiridharAttached File-=>Added perm.diff, #27264

    Back to the top


    Powered by Savane 3.1-cleanup