• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determining item number matching "x" in a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining item number matching "x" in a list


  • Subject: Re: Determining item number matching "x" in a list
  • From: Emmanuel <email@hidden>
  • Date: Fri, 14 Mar 2003 20:26:16 +0100

At 11:47 AM -0500 14/03/03, Steve Cunningham wrote:
Emmanuel wrote

NG's "getindex" requires 170 +or- 25 microseconds
>My "IndexOfItem" requires 809 +or- 37 microseconds

I can't reproduce these results :-(

Now I can't either :-(
[can't believe it]

My latest tests say that NG's handler is twice slower on the average than the "count paragraph" method:

NG's binary search = 1868 +or- 715
EL's count paragraph = 664 +or- 113

I've written the script that tests both handlers and plots the results into a nice graph. Please ask me, I'll send it with pleasure. I can't exclude that it contains a big mistake.

I apologize for presenting such confusing information.

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Determining item number matching "x" in a list (From: Steve Cunningham <email@hidden>)

  • Prev by Date: Script Editor 2 bug?
  • Next by Date: Distinguishing scriptlets for Apple Events
  • Previous by thread: Re: Determining item number matching "x" in a list
  • Next by thread: Re: Determining item number matching "x" in a list
  • Index(es):
    • Date
    • Thread