Adaptation of Legacy Codes to Context-Aware Composition Using Aspect-Oriented Programming
2012 (Engelska)Ingår i: Lecture Notes in Computer Science, ISSN 0302-9743, E-ISSN 1611-3349, Vol. 7306, s. 68-85Artikel i tidskrift (Refereegranskat) Published
Abstract [en]
The context-aware composition approach (CAC) has shown to improve the performance of object-oriented applications on modern multi-core hardware by selecting between different (sequential and parallel) component variants in different (call and hardware) contexts. However, introducing CAC in legacy applications can be time-consuming and requires quite some effort for changing and adapting the existing code.We observe that CAC-concerns, like offline component variant profiling and runtime selection of the champion variant, can be separated from the legacy application code. We suggest separating and reusing these CAC concerns when introducing CAC to different legacy applications.
For automating this process, we propose an approach based on Aspect-Oriented Programming (AOP) and Reflective Programming. It shows that manual adaptation to CAC requires more programming than the AOP-based approach; almost three times in our experiments. Moreover, the AOP-based approach speeds up the execution time of the legacy code, in our experiments by factors of up to 2.3 and 3.4 on multi-core machines with two and eight cores, respectively. The AOP based approach only introduces a small runtime overhead compared to the manually optimized CAC approach. For different problems, this overhead is about 2-9% of the manual adaptation approach. These results suggest that AOP-based adaptation can effectively adapt legacy applications to CAC which makes them running efficiently even on multi-core machines.
Ort, förlag, år, upplaga, sidor
Springer-Verlag Berlin Heidelberg 2012 , 2012. Vol. 7306, s. 68-85
Nyckelord [en]
Context-Aware Composition, Autotuning, Aspect-Oriented Programming
Nationell ämneskategori
Datavetenskap (datalogi)
Forskningsämne
Datavetenskap, Programvaruteknik
Identifikatorer
URN: urn:nbn:se:lnu:diva-19232DOI: 10.1007/978-3-642-30564-1ISBN: 978-3-642-30563-4 (tryckt)OAI: oai:DiVA.org:lnu-19232DiVA, id: diva2:530134
Konferens
Proceedings 11th International Conference, SC 2012, Prague, Czech Republic, May 31 – June 1, 2012.
Projekt
Context-Aware Composition of Parallel Components2012-08-302012-06-012018-01-12Bibliografiskt granskad