Re: [Bioc-devel] IntAE buffers needs to be freed or not??

2013-07-19 Thread Hervé Pagès
Hi Ge, No you don't. At least not currently, because those buffers use transient memory which will be freed automatically when .Call() returns. However, I might change the implementation of the IntAE buffers to use user-controlled memory at some point (malloc() is so much faster than R_alloc(), a

[Bioc-devel] IntAE buffers needs to be freed or not??

2013-07-19 Thread Ge Tan
Hi all, I am using the IntAE buffers (taken from IRanges packages) in my .Call() code. Sample code in C: IntAE width_buf; width_buf = new_IntAE(0, 0, 0); for(…){     IntAE_insert_at(&width_buf, IntAE_get_nelt(&width_buf), width); } PROTECT(width = new_INTEGER_from_IntAE(&width_buf)); UNPROTECT(1)

[Bioc-devel] parLapplyLB: Load balancing?

2013-07-19 Thread Ulrich Bodenhofer
[cross-posted on R-devel and Bioc-devel, since the functions from the parallel package discussed here are mirrored in the BiocGenerics package] Hi, I am currently running a lengthy simulation study (no details necessary) on a large multi-core system. The simulated data sets are stored in a lo