|
From: | Julien Bect |
Subject: | Re: Octave crashes on old MEX-files: how can I detect/prevent this? |
Date: | Wed, 7 Dec 2016 15:33:06 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 |
Le 07/12/2016 à 15:13, Sebastian Schöps a écrit :
siko1056 wroteIf there was a clean and priceless solution of detecting this, I would agree. But the intention to leave the Octave language by using oct/mex-files is to get fast code. I would bother more passing expensive checks each time calling a oct/mex-file, than recompiling everything at startup, if necessary.I'd say stability is more important than performance. Furthermore, for a fast code, I typically do not call an oct-file several times but I rather call it once with a "heavy" computation. In this case a single additional check when calling seems tolerable to me.
(continuing discussion from the help list)I am not exactly familiar with the loading mechanism of mex-files, but I believe that the dynamic linking is done once and for all when you first use the mex-file (?), not every time you call the function.
Am I right ?
[Prev in Thread] | Current Thread | [Next in Thread] |