Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: MathLink slow

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62627] Re: MathLink slow
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 29 Nov 2005 06:44:06 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <dmh944$8rq$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

my personal experience is that MathLink is quite 
fast when
passing data since version 4.2 is faster. But the 
speed depends
on your programming style. Since MathLink pass the 
heads of an expression
it took more time to send

{Line[{p1,p2}],Line[{p2,p3}],Line[{p3,p4}]}

than

Line[{p1,p2,p3,p4}]

but the result in the line drawing is the same.
The same apply to read the elemens in a array
element by element or to pass the array as a 
single
list.

When the MathLink overhead is realy the problem,
it is useless to use MathLink at all. In that case
it is better to do the job in the Mathematica 
Kernel.

Regards
  Jens


"Lars Schouw" <schouwla at yahoo.com> schrieb im 
Newsbeitrag news:dmh944$8rq$1 at smc.vnet.net...
| Mathlink is slow passing data over between 
Mathematica and a C++ dll. When I pass over a lot 
of data all my comutaional time is lost in passing 
over data!
|
| Is there anyway to speed this up?
|
| Regards
| Lars Schouw
|
|
|
|


  • Prev by Date: Re: Get numbers out of PhysicalConstants?
  • Next by Date: Re: Re: Re: How to View Mathematica and Hardcopy Books
  • Previous by thread: MathLink slow
  • Next by thread: Re: MathLink slow