Patent ID: 8352456

Claim:
A code optimization system, comprising at least one processor coupled to at least one machine-readable storage medium storing instructions executable by the at least one processor to implement: an interface component configured to identify a programmatic data producer and consumer; an optimization component configured to optimize interaction between the producer and the consumer; an analysis component configured to analyze actions of the consumer; a modification component configured to modify the producer as a function of the consumer analysis; and an integration component configured to combine activity of the consumer with activity of the producer to generate integrated code that includes activity of the producer and at least a portion of activity of the consumer, wherein the combining activity of the consumer with activity of the producer comprises: creating a filtered object; passing the filtered object into a loop of the consumer activity; and integrating the loop of the consumer activity into a query of the producer activity to fuse the producer activity and the consumer activity by removing the loop and altering the query of the producer activity so that consumer activity is a query operation of the producer activity.