MATLink icon indicating copy to clipboard operation
MATLink copied to clipboard

Is rehash needed with MScript for MEX MEvaluate?

Open szhorvat opened this issue 11 years ago • 2 comments

Check is rehash is needed on OS X to let MATLAB pick up MScripts created in /tmp/something

Check why this became necessary:

  • is it the switch to engEvalWithTrap?
  • is it because StartMATLink is run as matlab -r StartMATLink and something is not initialized?

szhorvat avatar Jun 12 '14 14:06 szhorvat

Depends on #67 .

Do not use rehash until we're certain that MScript won't be called frequently and won't become a performance bottleneck. rehash is slow on OSX/Linux.

szhorvat avatar Jun 12 '14 15:06 szhorvat

@szhorvat IIRC, rehash was added because changes to the path or added/modified scripts were not picked up in Windows. It was just easier to leave it in for all OSes... we should do more testing and have OS specific solutions for these.

rsmenon avatar Jun 12 '14 20:06 rsmenon