Comparing Variants in a Plugin (REALbasic Plugins Mailinglist archive)

Back to the thread list
Previous thread: Plugins for Cocoa 2010r2a2
Next thread: REALbasic Mach-O Plugin for Xcode 3.2.2


macosx and unix paths   -   GOLD
  Comparing Variants in a Plugin   -   Björn Eiríksson
   Re: Comparing Variants in a Plugin   -   Ruslan Zasukhin
    Re: Comparing Variants in a Plugin   -   Björn Eiríksson
    Re: Comparing Variants in a Plugin   -   Björn Eiríksson

Comparing Variants in a Plugin
Date: 18.02.10 20:05 (Thu, 18 Feb 2010 19:05:20 +0000)
From: Björn Eiríksson
Any suggestions on how to compare 2 variants in a plugin ? or a Entry point ?

Thanks

Re: Comparing Variants in a Plugin
Date: 18.02.10 20:16 (Thu, 18 Feb 2010 21:16:27 +0200)
From: Ruslan Zasukhin
On 2/18/10 9:05 PM, "Björn Eiríksson" <<email address removed>> wrote:

Hi Björn,

> Any suggestions on how to compare 2 variants in a plugin ? or a Entry point ?

You can ask type then have switch I think.

But my big concern is HOW dramatically SLOOOW is RB VARIANT, guys
It is just NOT acceptably slow!

About 100+ times slower of simple .long value

And when I did profile, I have see reason of that.
REALbasic calls some LEX and PARSER method ?!?!!?

Any other language do not do this.

This was issue 4 years ago, and this is still issue in RB2010.

Probably REAL is happy with this speed.
But it is not real :-)

Re: Comparing Variants in a Plugin
Date: 18.02.10 20:43 (Thu, 18 Feb 2010 19:43:24 +0000)
From: Björn Eiríksson
I just realized a Variant does have Equals function on the class, so I will probably be able to load that through the dynamic API.

Björn

On 18.2.2010, at 19:23, Björn Eiríksson wrote:

> Ya, and they have endless types of Variants and keep adding to it. So finding a entry point would probably
> be much safer and much faster way in the long run.
>
> On 18.2.2010, at 19:16, Ruslan Zasukhin wrote:
>
>> On 2/18/10 9:05 PM, "Björn Eiríksson" <<email address removed>> wrote:
>>
>> Hi Björn,
>>
>>> Any suggestions on how to compare 2 variants in a plugin ? or a Entry point ?
>>
>> You can ask type then have switch I think.
>>
>> But my big concern is HOW dramatically SLOOOW is RB VARIANT, guys
>> It is just NOT acceptably slow!
>>
>> About 100+ times slower of simple .long value
>>
>> And when I did profile, I have see reason of that.
>> REALbasic calls some LEX and PARSER method ?!?!!?
>>
>> Any other language do not do this.
>>
>> This was issue 4 years ago, and this is still issue in RB2010.
>>
>> Probably REAL is happy with this speed.
>> But it is not real :-)
>>
>>
>> --
>> Best regards,
>>
>> Ruslan Zasukhin
>> VP Engineering and New Technology
>> Paradigma Software, Inc
>>
>> Valentina - Joining Worlds of Information
>> http://www.paradigmasoft.com
>>
>> [I feel the need: the need for speed]
>>
>>
>>
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
>
> --
> ______________________________________________________________________
> Björn Eiríksson <email address removed>
> Einhugur Software
> http://www.einhugur.com/
> ______________________________________________________________________
> Einhugur Software has sold its products in 57 countries world wide.
> ______________________________________________________________________
> For support: <email address removed>
> To post on the maillist: <email address removed>
>
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

Re: Comparing Variants in a Plugin
Date: 18.02.10 20:23 (Thu, 18 Feb 2010 19:23:01 +0000)
From: Björn Eiríksson
Ya, and they have endless types of Variants and keep adding to it. So finding a entry point would probably
be much safer and much faster way in the long run.

On 18.2.2010, at 19:16, Ruslan Zasukhin wrote:

> On 2/18/10 9:05 PM, "Björn Eiríksson" <<email address removed>> wrote:
>
> Hi Björn,
>
>> Any suggestions on how to compare 2 variants in a plugin ? or a Entry point ?
>
> You can ask type then have switch I think.
>
> But my big concern is HOW dramatically SLOOOW is RB VARIANT, guys
> It is just NOT acceptably slow!
>
> About 100+ times slower of simple .long value
>
> And when I did profile, I have see reason of that.
> REALbasic calls some LEX and PARSER method ?!?!!?
>
> Any other language do not do this.
>
> This was issue 4 years ago, and this is still issue in RB2010.
>
> Probably REAL is happy with this speed.
> But it is not real :-)
>
>
> --
> Best regards,
>
> Ruslan Zasukhin
> VP Engineering and New Technology
> Paradigma Software, Inc
>
> Valentina - Joining Worlds of Information
> http://www.paradigmasoft.com
>
> [I feel the need: the need for speed]
>
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>





Links
MBS Realbasic Chart Plugins - Jugendzentrum Nickenich