• 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
Comparing arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Comparing arrays


  • Subject: Comparing arrays
  • From: Michelle Parker <email@hidden>
  • Date: Mon, 11 Jun 2007 15:34:42 +1000

Hi all

I have a slight problem which I am looking for the most efficient solution:

I am comparing 2 NSArrays containing numbers, with the aim of removing the numbers in one array from the other array.

The first array is obtained by rawRowsForSQL which returns the numbers as Longs.
The second array is obtained by valueForKeyPath which returns the numbers as Integers.


NSArray.removeObjectWithArray or NSSet.subtractSet don't work because the objects are not equal.

The arrays can be very large, ie. 100,000 objects.

What is the best way to handle this?

thanks
mich
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Comparing arrays
      • From: Chuck Hill <email@hidden>
    • Re: Comparing arrays
      • From: Galen Rhodes <email@hidden>
    • Re: Comparing arrays
      • From: Q <email@hidden>
    • Re: Comparing arrays
      • From: "Daniele Corti" <email@hidden>
  • Prev by Date: WOWOWOWODC 2007
  • Next by Date: Re: WO 4.5 on NT & Env Vars
  • Previous by thread: Re: WOWOWOWODC 2007
  • Next by thread: Re: Comparing arrays
  • Index(es):
    • Date
    • Thread