atom feed7 messages in at.iem.pd-devRe: [PD-dev] [PATCH] Replace getbytes...
FromSent OnAttachments
Julien 'Lta' BALLETDec 10, 2010 5:49 am 
Hans-Christoph SteinerDec 10, 2010 8:01 am 
Julien 'Lta' BALLETDec 10, 2010 6:00 pm 
patkoDec 12, 2010 6:52 am 
Julien 'Lta' BALLETDec 12, 2010 9:49 am 
Martin PeachDec 12, 2010 10:10 am 
Julien 'Lta' BALLETDec 12, 2010 1:06 pm 
Subject:Re: [PD-dev] [PATCH] Replace getbytes calls by alloca whenever possible in mrpeach's packOSC.c
From:Julien 'Lta' BALLET (elth@gmail.com)
Date:Dec 10, 2010 6:00:07 pm
List:at.iem.pd-dev

Hello,

Good question indeed. This is a general improvement. Sorry for not explaining it in the first place, this is my first post and patch on the pd-dev ml.

On Fri, Dec 10, 2010 at 5:01 PM, Hans-Christoph Steiner <ha@at.or.at>wrote:

My first question is: what's the problem that you are trying to solve? Are there specific bugs, or just a general improvement?

.hc

On Dec 10, 2010, at 8:50 AM, Julien 'Lta' BALLET wrote:

Hello,

As said in the title, i submit you a small patch to mrpeach's osc code, to replace calls to getbytes by alloca calls in part of the code that might get called in the soundcard callback.

The considered memory sizes are quites small and then won't smash the stack. This removes the need for memory deallocation and reduces the page fault risk as well as the memory allocation time.

This is kind of a naive patch, since i don't fully know yet the pd codebase.

Any comment would be appreciated.

Regards, Lta.

Computer science is no more related to the computer than astronomy is related to the telescope. -Edsger Dykstra