Which is typically faster, a C program that interacts with this package via OLE or a C program that interacts with it via the provided C/C++ interface?

I ask because some vendors spend much, much more time on the OLE interface (they're targeting the VB market) than they ever do on the "native" C/C++ interface. In fact, sometimes the C/C++ interface is really just a wrapper to a bunch of OLE calls.

So ask yourself: how badly is this per-call efficiency needed? If it is needed badly enough, which interface really is faster, and is the faster interface sufficiently faster so as to make a difference?

That said, it's also the case that some vendors will have an OLE interface that's just slapped on hurredly because marketing wanted it, whereas their real market is people who've been using their C/C++ libraries for years.

So which interface would you rather work with, debug, and optimize code in? Win32::OLE plus the OLE interface to this package, or XS plus the C/C++ interface? The answer will depend on the package in question and what you're most comfortable programming in.


In reply to Re: OLE vs XS by fizbin
in thread OLE vs XS by Flame

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.