1. A computer implemented method for optimizing an application based upon popularity of application features, the method comprising the steps of: determining, by a computer, a popularity measurement of each of a plurality of application features, wherein an application feature is high-level and corresponds to user activity at an application-level; mapping, by the computer, application code sections of source code to the application features, an application code section comprising a plurality of instructions necessary to implement a particular application feature; generating, by the computer, a plurality of compiler directives that are based on the determined popularity measurement of an application feature, each one of said directives being read and processed by a compiler and directing the compiler regarding compiling the application for optimization of the performance of specific, popular application features, each of said directives comprising an indication of which application source code maps to which features and a ranking of the corresponding feature popularity; and optimizing, by the computer, the application for performance of specific, application features, based on their popularity measurement.