[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #7923] Reducing memory usage in perms: pat

From: Arun Giridhar
Subject: [Octave-patch-tracker] [patch #7923] Reducing memory usage in perms: patch attached
Date: Mon, 14 Jan 2013 21:59:41 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0


                 Summary: Reducing memory usage in perms: patch attached
                 Project: GNU Octave
            Submitted by: arungiridhar
            Submitted on: Mon 14 Jan 2013 04:59:40 PM EST
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



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.


File Attachments:

Date: Mon 14 Jan 2013 04:59:40 PM EST  Name: perm.diff  Size: 778B   By:
Context diff for octave/scripts/specfun/perms.m to reduce internal memory


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]