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
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)
[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