1. A method comprising: providing a stream of content to a processor, the stream of content having a plurality of kernels; and applying affine modeling to the plurality of kernels within the stream of content wherein affine modeling comprises: modeling data dependencies in loops within the plurality of kernels; applying affine transformation to the plurality of kernels to convert the plurality of kernels to loop processes, wherein affine transformation is applied in response to modeling data dependencies in the loops within the plurality of kernels; applying stream contracting to the plurality of kernels in response to applying affine transformation; and applying stream blocking to the plurality of kernels in response to applying stream contracting.