Efficient Layer Activation in Context JS
Robert Krahn, Jens Lincke, Robert Hirschfeld · 2012
Context-oriented programming (COP) describes language extensions for modularizing behavioral or structural variations that are to be composed at run-time. Different COP infrastructures and implementations offer several strategies for scoping, activation, and deactivation of such compositional units. Often, the mechanisms employed cause substantial execution overhead. In this paper we present an optimization technique for ContextJS -- our COP extension to JavaScript -- that can significantly reduce this overhead to run context-aware code efficiently.