Optimizing a cache of compiled expressions by removing variability
Abstract
Approaches presented herein enable optimization of a cache of compiled XML Path Language (XPath) expressions by removing variability from XPath expressions. More specifically, XPath expressions are identified that are the same but for one or more hardcoded values. These hardcoded values are identified and replaced in an identified XPath expression with an identifier to form a cache optimized XPath expression that lacks the hardcoded value variability of the identified XPath expressions. This cache optimized XPath expression is inserted into a cache optimized function that receives the hardcoded value as arguments and assigns the received hardcoded value to the identifier in the cache optimized XPath expression. The identified XPath expressions are then rewritten as calls to the cache optimized function or to another function wrapping the cache optimized function. Therefore, only the cache optimized XPath expression, instead of several of the identified XPath expressions, is stored in the XPath expression cache.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 24 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for optimizing a cache of compiled XML Path Language (XPath) expressions, the method comprising: identifying a plurality of XPath expressions, wherein at least a portion of each XPath expression is the same among the plurality and at least one hardcoded value differs between a first XPath expression of the plurality and a second XPath expression of the plurality; generating a cache optimized XPath expression from the first XPath expression by replacing the differing at least one hardcoded value with a variable identifier; and inserting the cache optimized XPath expression into a cache
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (24)
Non-Patent Literature (4)
- Li, Guo-Liang et al., "An Effective Semantic Cache for Exploiting XPath Query/View Answerability", Mar. 16, 2010, 5 pgs.
- Ogden et al., Scalable XML query processing using parallel pushdown transducers, 12 pages (Year: 2013).
- Unknown, "Compiled XPath Expressions", https://msdn.microsoft.com/en-us/library/093b7219, Sep. 8, 2012, 4 pgs.
- Unknown, "Configuring the XPath Cache", Version 10.0.0.7, IBM Knowledge Center, Nov. 28, 2016, 2 pgs.