Re: What is Best Method To Determine Duplicate Items in a Large List?
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: Jim Weisbin <email@hidden>
- Date: Mon, 6 Nov 2017 09:10:11 -0500
> On Mon, 6 Nov 2017 08:01:51 -0600 Christopher Stone
> <email@hidden <mailto:email@hidden>> wrote
>
>
> Hey Jim,
>
> On a 30,000 line test file it took almost 40 seconds on my system (Mid-2010
> i7 MacBook Pro) in Script Debugger.
>
> About the same in the Script Editor on macOS 10.12.6.
It might be faster if the list were passed directly to python rather than read
from a file, but then AS would have to process the file, so no net gain. And I
haven’t figured out how to pass an AS list to a python list.
But it does demonstrate an interesting use of sets vs lists in python. Are
there sets in ObjC?
Thanks.
Jim Weisbin | C.T.O. | Human | Post Human | 27 West 20th Street | Suite 801 |
New York, NY | 10011 | (212) 352-0211 | (917) 375-2272 | 2046 Broadway |
Santa Monica, CA | 90404 | (310) 264-0211 telephone | www.humanworldwide.com
<http://www.humanworldwide.com/>
Click here <http://www.humanworldwide.com/#commercials> to view our online reel
_______________________________________________
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