A function with this line took about 4 seconds to compile in debug.
This equivalent version took only 5.4ms:
picks is an array of instances of an NSManagedObject subclass, position and pick_line are both optional Integer types. (I don't know if this is relevant).
Not sure if this should be labelled "Performance". Is that for issues in the compilation time or the performance of the compiled code.