Thanks for all the input; I will try to run some tests then as soon as
I have some time to spare. Cheers!

-André


On Oct 18, 3:33 am, Ravi Jagannadhan <[email protected]> wrote:
> Python comes with a profiler called cProfiler (and another called
> HotShot, I think). You could use those as well to measure the
> performance of your code (and decided if you want to use the API or
> the generic calls).
>
>
>
>
>
>
>
>
>
> On Mon, Oct 17, 2011 at 1:54 PM, Justin Israel <[email protected]> wrote:
> > I dont think its an across the board one way or the other answer.
> > The maya api classes are all wrappers around C++ code, so they should be
> > pretty fast, whereas not every python standard library module is a C
> > extension. You can do case-by-case time tests if you want, but if the maya
> > api provides the functionality you can probably be sure its at least AS
> > fast. Unless their C code is not as optimized as the python C extension.
>
> > On Mon, Oct 17, 2011 at 3:05 AM, André Adam <[email protected]> wrote:
>
> >> Hi there,
>
> >> in general, are the Maya API(2) classes considered to be faster than
> >> calling equivalent native Python classes? Like, using the MAngle class
> >> for radian to degree conversion instead of Python's math.degree()? I
> >> am calling that per frame, so performance is a factor here.
>
> >> Thanks in advance for any insight you can share! Cheers!
>
> >>  -André
>
> >> --
> >> view archives:http://groups.google.com/group/python_inside_maya
> >> change your subscription settings:
> >>http://groups.google.com/group/python_inside_maya/subscribe
>
> > --
> > view archives:http://groups.google.com/group/python_inside_maya
> > change your subscription settings:
> >http://groups.google.com/group/python_inside_maya/subscribe
>
> --
> Where we have strong emotions, we're liable to fool ourselves - Carl Sagan

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to