Processing of Expressions
First Claim
1. A method for processing of expressions in a data processing system, comprising the steps of:
- parsing a data processing instruction using a parsing template, which parsing template defines elements of a first type of expression that can be evaluated to control a conditional data processing operation, to identify elements of an expression of said first type including expression parameter values;
selecting an evaluation template representing said first type of expression in a form that is optimized for evaluation;
inserting parameter values identified by the parsing step into the evaluation template to generate optimized evaluation code; and
using the optimized evaluation code to evaluate said expression.
1 Assignment
0 Petitions
Accused Products
Abstract
In many messaging systems, message selection filtering involves a significant processing overhead. This includes the parsing and preparing of the message selection filters in readiness for evaluation, as well as the evaluation itself. In systems which involve parsing and prepare processing for expressions that include repeated patterns (such as in many JMS environments), a template-based shortcutting of the conventional processing improves performance. A stored parsing template is used to parse an input sequence such as a received data processing instruction. The parse is used to identify expressions of a first type that can then be implicitly optimized by using a stored evaluation template that is associated with expressions of that type.
-
Citations
18 Claims
-
1. A method for processing of expressions in a data processing system, comprising the steps of:
-
parsing a data processing instruction using a parsing template, which parsing template defines elements of a first type of expression that can be evaluated to control a conditional data processing operation, to identify elements of an expression of said first type including expression parameter values; selecting an evaluation template representing said first type of expression in a form that is optimized for evaluation; inserting parameter values identified by the parsing step into the evaluation template to generate optimized evaluation code; and using the optimized evaluation code to evaluate said expression. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A data processing apparatus comprising:
-
a data processing unit; a data storage unit for storing a set of templates; a template-based parser for controlling the data processing unit to parse an input data processing instruction, using a stored parsing template that defines elements of a first type of expression that can be evaluated to control a conditional data processing operation, to identify elements of an expression of said first type including expression parameter values; an evaluation template selector associated with said template-based parser for selecting a stored evaluation template that represents said first type of expression in a form that is optimized for evaluation; a code generator for inserting parameter values identified by the parsing step into the evaluation template to generate optimized evaluation code; a receiver for receiving a data communication; and an evaluator for evaluating the expression, using the optimized evaluation code, to control performance of a conditional data processing operation in relation to the received data communication. - View Dependent Claims (9, 10, 11)
-
-
12. A computer program product for performing processing of expressions in a data processing system, said computer program product comprising a computer usable medium having computer usable program code embodied therewith, said computer usable program code comprising:
-
computer usable program code configured to parse a data processing instruction using a parsing template, which parsing template defines elements of a first type of expression that can be evaluated to control a conditional data processing operation, to identify elements of an expression of said first type including expression parameter values; computer usable program code configured to select an evaluation template representing said first type of expression in a form that is optimized for evaluation; computer usable program code configured to insert parameter values identified by the parsing step into the evaluation template to generate optimized evaluation code; and computer usable program code configured to use the optimized evaluation code to evaluate said expression. - View Dependent Claims (13, 14, 15, 16, 17, 18)
-
Specification