Hi folks, I want to add an optional argument for object creation time to Scheme for Pd to allow setting the starting heap size, which can dramatically lower garbage collector times. In Scheme for Max 0.3 I added the @heap attr. I'm not sure what the normal way to do this kind of thing is in Pd. The catch is that this arg needs to be optional (beginners shouldn't have to worry about it) and needs to be set at object creation time because you can't change the starting heap size after creating the s7 interpreter. So I'm somewhat reluctant to just add a 3rd integer arg. Suggestions welcome!
thanks! iain
Usually, we would use flags, e.g. in your case something like "-heap <float>".
[sigmund~] object, for example, takes a few flag arguments. You can take it as a reference point.
Christof
On 24.09.2021 17:33, Iain Duncan wrote:
Hi folks, I want to add an optional argument for object creation time to Scheme for Pd to allow setting the starting heap size, which can dramatically lower garbage collector times. In Scheme for Max 0.3 I added the @heap attr. I'm not sure what the normal way to do this kind of thing is in Pd. The catch is that this arg needs to be optional (beginners shouldn't have to worry about it) and needs to be set at object creation time because you can't change the starting heap size after creating the s7 interpreter. So I'm somewhat reluctant to just add a 3rd integer arg. Suggestions welcome!
thanks! iain
Pd-dev mailing list Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev
Thanks Christof. I will take a look at signumd!
On Fri, Sep 24, 2021 at 9:04 AM Christof Ressi info@christofressi.com wrote:
Usually, we would use flags, e.g. in your case something like "-heap <float>".
[sigmund~] object, for example, takes a few flag arguments. You can take it as a reference point.
Christof On 24.09.2021 17:33, Iain Duncan wrote:
Hi folks, I want to add an optional argument for object creation time to Scheme for Pd to allow setting the starting heap size, which can dramatically lower garbage collector times. In Scheme for Max 0.3 I added the @heap attr. I'm not sure what the normal way to do this kind of thing is in Pd. The catch is that this arg needs to be optional (beginners shouldn't have to worry about it) and needs to be set at object creation time because you can't change the starting heap size after creating the s7 interpreter. So I'm somewhat reluctant to just add a 3rd integer arg. Suggestions welcome!
thanks! iain
Pd-dev mailing listPd-dev@lists.iem.athttps://lists.puredata.info/listinfo/pd-dev
Pd-dev mailing list Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev