1. A method for selecting a resource based on a measure of a processing cost, the method comprising: identifying a first resource for processing as a first input by a program component and identifying a second resource for processing as a second input by the program component; determining a first measure of a specified processing cost for the processing of the first resource by the program component and a second measure of the processing cost for the processing of the second resource by the program component; selecting one of the first resource and the second resource based on the first measure and the second measure; and identifying, to the program component, the selected one of the first resource as the first input and the second resource as the second input for processing by the program component; wherein performing at least one of the preceding actions comprising the method includes execution of an instruction by a processor.