~zorba-coders/zorba/trunk

« back to all changes in this revision

Viewing changes to test/rbkt/ExpQueryResults/zorba/caching/key-match-ext-sd-02.xml.res

  • Committer: Zorba Jenkins
  • Author(s): Federico Cavalieri
  • Date: 2014-04-29 20:37:35 UTC
  • mfrom: (11714.2.7 feature-caching-annotations)
  • Revision ID: jenkins@lambda.nu-20140429203735-mgu2acarnn71p66l
Greatly improved function caching.

* Changed function annotations:
  - %an:deterministic: disables caching (previously %an:no-cache)
  - %an:strictlydeterministic: enables caching for deterministic and non-deterministic functions. Cache is only within the same snapshot.
  - %an:cache enables caching  for deterministic, non-deterministic and sequential functions. Caches is across snapshots. (unchanged)
  - %an:exclude-from-cache-key(n) specifies that a function argument has to be ignored when computing the cache key
  - %an:compare-with-deep-equal(n) specifies that a function argument has to be compared with deep-equal semantics
  
* Changed criteria for default annotations of internal and external functions:
  - Functions which have no %an:deterministic, %an:nondeterministic or %an:strictlydeterministic annotations and all their parameter and the return types are atomics are now automatically annotated %an:strictlydeterministic
  - All the other functions are annotated %an:deterministic
* Added snapshot id in global dynamic context
* Added dynamic context xquery module
* Added strict equality hashmap
* Reimplemented %an:cache
* Enabled caching for function that have non atomic arguments
* Whenever the eager evaluation of a function arguments raises an error, the evaluation is retried without cache. The function cache is then disabled if it was automatically detected.
Approved: Matthias Brantner, Federico Cavalieri

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Called with : NOT CACHED
 
2
 Called with 1: NOT CACHED
 
3
 Called with 1: NOT CACHED
 
4
 Called with <a/>: NOT CACHED
 
5
 Called with { "a" : 1 }: NOT CACHED
 
6
 Called with [ 1 ]: NOT CACHED
 
7
 Called with <a/>: NOT CACHED
 
8
 Called with { "a" : 1 }: NOT CACHED
 
9
 Called with [ 1 ]: NOT CACHED
 
10
 Called with [ 2 ]: NOT CACHED
 
11
 Called with : NOT CACHED
 
12
 Called with 1: NOT CACHED
 
13
 Called with <a/>: NOT CACHED
 
14
 Called with { "a" : 1 }: NOT CACHED
 
15
 Called with [ 1 ]: NOT CACHED
 
16
 Called with [ 2 ]: NOT CACHED
 
17
 Called with 1: NOT CACHED
 
18
 Called with <a/>: NOT CACHED
 
19
 Called with { "a" : 1 }: NOT CACHED
 
20
 Called with [ 1 ]: NOT CACHED
 
21
 Called with [ 2 ]: NOT CACHED
 
 
b'\\ No newline at end of file'