Event filtering at a performance-based interface
First Claim
1. A method, implemented at a computing system that includes one or more processors and system memory, of managing messages across a performance-based interface between a native code layer and a managed code framework, comprising:
- an act of the computer system initializing the performance-based interface between a managed code framework and a native code layer, the performance-based interface being configured to exchange messages between the managed code framework and the native code layer;
an act of the computer system initializing a filter component for the native code layer, the filter component being configured to forward only messages of interest from the native code layer to the managed code framework;
an act of the managed code framework initializing one or more managed objects within the managed code framework, the managed objects having corresponding attached event handlers for handling messages sent from the native code layer to the managed code framework;
an act of the managed code framework performing reflection on the one or more managed objects and, as a result of performing reflection, the managed code framework determining the existence of a particular object having been instantiated within the managed code framework for handling corresponding messages;
an act of the managed code framework determining the particular object is a custom object upon detecting that message handling of the custom object has been modified to modify a way in which the custom object handles the corresponding messages;
in response to detecting that message handling of the custom object has been modified, an act of the managed code framework notifying the native code layer that responses to one or more messages sent from the managed code framework that are associated with the custom object having the modified message handling are of interest and should be forwarded from the native code layer in accordance with the modified message handling of the custom object; and
an act of the filter component forwarding responses to the one or more messages to the managed code framework during a lifetime of the custom object in accordance with the modified message handling.
2 Assignments
0 Petitions
Accused Products
Abstract
Architecture that facilitates performance enhancement in message-based computing across a performance-based interface. When a request from a source is transmitted across the interface to a destination, a filter component in communication with the destination dynamically allows only one or more relevant responses from the destination to transition the interface to the source. This mechanism achieves an even tighter filtering of events while at the same time giving developers more flexibility over the events they choose to register, thereby enhancing the performance of message-based computing architectures by reducing unnecessary computation.
42 Citations
5 Claims
-
1. A method, implemented at a computing system that includes one or more processors and system memory, of managing messages across a performance-based interface between a native code layer and a managed code framework, comprising:
-
an act of the computer system initializing the performance-based interface between a managed code framework and a native code layer, the performance-based interface being configured to exchange messages between the managed code framework and the native code layer; an act of the computer system initializing a filter component for the native code layer, the filter component being configured to forward only messages of interest from the native code layer to the managed code framework; an act of the managed code framework initializing one or more managed objects within the managed code framework, the managed objects having corresponding attached event handlers for handling messages sent from the native code layer to the managed code framework; an act of the managed code framework performing reflection on the one or more managed objects and, as a result of performing reflection, the managed code framework determining the existence of a particular object having been instantiated within the managed code framework for handling corresponding messages; an act of the managed code framework determining the particular object is a custom object upon detecting that message handling of the custom object has been modified to modify a way in which the custom object handles the corresponding messages; in response to detecting that message handling of the custom object has been modified, an act of the managed code framework notifying the native code layer that responses to one or more messages sent from the managed code framework that are associated with the custom object having the modified message handling are of interest and should be forwarded from the native code layer in accordance with the modified message handling of the custom object; and an act of the filter component forwarding responses to the one or more messages to the managed code framework during a lifetime of the custom object in accordance with the modified message handling. - View Dependent Claims (2, 3)
-
-
4. A computing system comprising:
-
at least one processor; and memory having stored instructions for implementing a method, implemented at the computing system for managing messages across a performance-based interface between a native code layer and a managed code framework associated with the computing system, wherein the method includes; an act of the computer system initializing the performance-based interface between a managed code framework and a native code layer, the performance-based interface being configured to exchange messages between the managed code framework and the native code layer; an act of the computer system initializing a filter component for the native code layer, the filter component being configured to forward only messages of interest from the native code layer to the managed code framework; an act of the managed code framework initializing one or more managed objects within the managed code framework, the managed objects having corresponding attached event handlers for handling messages sent from the native code layer to the managed code framework; an act of the managed code framework performing reflection on the one or more managed objects and, as a result of performing reflection, the managed code framework determining the existence of a particular object having been instantiated within the managed code framework for handling corresponding messages; an act of the managed code framework determining the particular object is a custom object upon detecting that message handling of the custom object has been modified to modify a way in which the custom object handles the corresponding messages; in response to detecting that message handling of the custom object has been modified, an act of the managed code framework notifying the native code layer that responses to one or more messages sent from the managed code framework that are associated with the custom object having the modified message handling are of interest and should be forwarded from the native code layer in accordance with the modified message handling of the custom object; and an act of the filter component forwarding responses to the one or more messages to the managed code framework during a lifetime of the custom object in accordance with the modified message handling. - View Dependent Claims (5)
-
Specification