octave-maintainers
[Top][All Lists]
Advanced

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

Re: Reducing memory usage in perms: fix attached


From: Carnë Draug
Subject: Re: Reducing memory usage in perms: fix attached
Date: Mon, 14 Jan 2013 20:35:01 +0000

On 14 January 2013 20:29, Arun Giridhar <address@hidden> wrote:
> All,
>
> 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.
>
> Best,
> Arun

Hi Arun

could you please submit this to the patch tracker[1]? These things get
lost way too easily on e-mail. Thanks

Carnë


[1] https://savannah.gnu.org/patch/?func=additem&group=octave


reply via email to

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