• 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: What is Best Method To Determine Duplicate Items in a Large List?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is Best Method To Determine Duplicate Items in a Large List?


  • Subject: Re: What is Best Method To Determine Duplicate Items in a Large List?
  • From: "Nigel Garvey" <email@hidden>
  • Date: Sun, 13 Aug 2017 20:48:34 +0100

Shane Stanley wrote on Sun, 13 Aug 2017 21:52:13 +1000:

>On 13 Aug 2017, at 7:25 pm, Nigel Garvey <email@hidden>
wrote:
>>
>> This is essentially Shane's script, but simplified (and slightly
faster)
>
>I'll grant you simplified, and more elegant with countForObject:, but
I've
>run several comparisons of thousands of iterations of each, and the
figures
>all fall within about ±4%, and mostly ±1%. In fact, I've rarely seen
such
>consistent figures.

Yeah There's very little in it. Even leaving out the minusSet: stage
doesn't slow it down much.

>Of course real data could tip it one way or the other…

Speaking of which, if the items in the list aren't necessarily text,
your …

        set end of indexInfo to {aDupe as text}

 … could be …

  set end of indexInfo to (current application's NSArray's
arrayWithObject:(aDupe)) as list

… and my …

  set thisInfo to {thisValue as text, thisIndex}

… this …

  set thisInfo to (current application's NSArray's arrayWithObjects_(thisValue,
thisIndex)) as list


NG
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: What is Best Method To Determine Duplicate Items in a Large List?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: What is Best Method To Determine Duplicate Items in a Large List?
  • Next by Date: Re: What is Best Method To Determine Duplicate Items in a Large List?
  • Previous by thread: Re: What is Best Method To Determine Duplicate Items in a Large List?
  • Next by thread: Re: What is Best Method To Determine Duplicate Items in a Large List?
  • Index(es):
    • Date
    • Thread