[gst-devel] use of g_alloca
steve.lhomme at free.fr
Sun Sep 11 07:53:27 CEST 2005
From what I understood, g_alloca() is not available on all platforms.
But your change (and changes in the code) could help solve that and make
it faster when possible.
Stefan Kost wrote:
> hi all,
> what is the problem with using g_alloca() ? The advantages are
> clear. In processing function the use of g_alloca for temporary data
> blocks is better as it is really fast and cannot leak.
> I there know plattform where it does not work? If so why aren't we use
> the cpp to use g_malloc then? e.g.
> #ifdef HAVE_G_ALLOC_A
> #define gst_alloca(size) g_alloca(size)
> #define gst_freea(mem)
> #define gst_alloca(size) g_malloc(size)
> #define gst_freea(mem) g_free(mem)
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
robUx4 on blog <http://robux4.blogspot.com/>
More information about the gstreamer-devel