But implicitly converting from self to a Ptr causes a 10% speed payload. Is there any advantage to compensate for that ?


Le 20 sept. 2013 à 16:41, declaresub <notifications@github.com> a écrit :

> In macoslib/ImageKit & ImageCapture/IKCameraDeviceView.rbbas:
> 
> > @@ -54,6 +54,22 @@ Inherits Canvas
> >  	#tag EndEvent
> >  
> >  
> > +	#tag Method, Flags = &h0
> > +		Function AttributeKeys() As NSArray
> > +		  
> > +		  #if TargetMacOS
> > +		    dim nsa as NSArray
> > +		    
> > +		    declare function attributeKeys lib CocoaLib selector "attributeKeys" (id as Ptr) as Ptr
> > +		    
> > +		    nsa = new NSArray( attributeKeys( self.id ))
> There is no need to pass self.id; just pass self and let Operator_Convert handle the rest.
> 
> —
> Reply to this email directly or view it on GitHub.
>