lp:~zorba-coders/zorba/feature-function-caching
Created by
Federico Cavalieri
and last modified
- Get this branch:
- bzr branch lp:~zorba-coders/zorba/feature-function-caching
Members of
Zorba Coders
can upload to this branch. Log in for directions.
Branch merges
Propose for merging
No branches
dependent on this one.
- Matthias Brantner: Approve
- Federico Cavalieri: Approve
-
Diff: 11393 lines (+7260/-1233)195 files modifiedinclude/zorba/pregenerated/diagnostic_list.h (+8/-0)
include/zorba/serializer.h (+5/-0)
modules/CMakeLists.txt (+2/-0)
modules/dctx/CMakeLists.txt (+16/-0)
modules/dctx/dctx.jq (+42/-0)
modules/pregenerated/zorba-errors.xq (+16/-0)
modules/pregenerated/zorba-warnings.xq (+5/-3)
modules/util-tests/CMakeLists.txt (+23/-0)
modules/util-tests/util-tests.xq (+250/-0)
modules/util-tests/util-tests.xq.src/util-tests.cpp (+433/-0)
modules/util-tests/util-tests.xq.src/util-tests.h (+463/-0)
src/annotations/annotations.cpp (+109/-26)
src/annotations/annotations.h (+22/-9)
src/api/dynamiccontextimpl.cpp (+0/-2)
src/api/dynamiccontextimpl.h (+6/-1)
src/api/serializerimpl.cpp (+12/-0)
src/api/serializerimpl.h (+5/-0)
src/compiler/codegen/plan_visitor.cpp (+9/-2)
src/compiler/rewriter/rules/fold_rules.cpp (+5/-0)
src/compiler/translator/translator.cpp (+12/-7)
src/context/dynamic_context.cpp (+11/-0)
src/context/dynamic_context.h (+5/-0)
src/context/static_context.cpp (+5/-0)
src/context/static_context.h (+1/-0)
src/diagnostics/diagnostic_en.xml (+41/-11)
src/diagnostics/pregenerated/diagnostic_list.cpp (+12/-0)
src/diagnostics/pregenerated/dict_en.cpp (+9/-2)
src/diagnostics/pregenerated/dict_zed_keys.h (+5/-2)
src/functions/CMakeLists.txt (+1/-0)
src/functions/cacheable_function.cpp (+463/-0)
src/functions/cacheable_function.h (+135/-0)
src/functions/external_function.cpp (+36/-8)
src/functions/external_function.h (+10/-8)
src/functions/function.h (+1/-1)
src/functions/library.cpp (+2/-0)
src/functions/pregenerated/func_dctx.cpp (+63/-0)
src/functions/pregenerated/func_dctx.h (+67/-0)
src/functions/pregenerated/function_enum.h (+1/-0)
src/functions/udf.cpp (+45/-166)
src/functions/udf.h (+7/-43)
src/runtime/CMakeLists.txt (+1/-0)
src/runtime/api/plan_iterator_wrapper.cpp (+5/-0)
src/runtime/api/plan_iterator_wrapper.h (+1/-1)
src/runtime/booleans/BooleanImpl.cpp (+25/-14)
src/runtime/booleans/BooleanImpl.h (+7/-4)
src/runtime/core/apply_updates.cpp (+4/-0)
src/runtime/core/fncall_iterator.cpp (+692/-400)
src/runtime/core/fncall_iterator.h (+84/-31)
src/runtime/core/gflwor/common.cpp (+2/-1)
src/runtime/core/var_iterators.cpp (+2/-0)
src/runtime/dctx/dctx_impl.cpp (+44/-0)
src/runtime/dctx/pregenerated/dctx.cpp (+71/-0)
src/runtime/dctx/pregenerated/dctx.h (+75/-0)
src/runtime/pregenerated/iterator_enum.h (+1/-0)
src/runtime/scripting/scripting.cpp (+4/-0)
src/runtime/seq/seq_util.h (+1/-1)
src/runtime/sequences/deep_equality.cpp (+788/-0)
src/runtime/sequences/deep_equality.h (+126/-0)
src/runtime/sequences/sequences_impl.cpp (+22/-440)
src/runtime/spec/dctx/dctx.xml (+24/-0)
src/runtime/spec/mappings.xml (+4/-1)
src/runtime/update/update.cpp (+1/-1)
src/runtime/util/item_iterator.cpp (+8/-2)
src/runtime/util/item_iterator.h (+1/-0)
src/runtime/visitors/pregenerated/planiter_visitor.h (+5/-0)
src/runtime/visitors/pregenerated/printer_visitor.cpp (+15/-0)
src/runtime/visitors/pregenerated/printer_visitor.h (+3/-0)
src/runtime/visitors/printer_visitor_impl.cpp (+22/-5)
src/store/api/item.h (+5/-0)
src/store/api/item_factory.h (+1/-1)
src/store/api/pul.h (+2/-0)
src/store/naive/atomic_items.cpp (+85/-10)
src/store/naive/atomic_items.h (+21/-5)
src/store/naive/hashmap_nodep.h (+2/-2)
src/store/naive/item.cpp (+6/-1)
src/store/naive/item_vector.cpp (+8/-4)
src/store/naive/item_vector.h (+1/-1)
src/store/naive/json_items.cpp (+4/-2)
src/store/naive/simple_item_factory.cpp (+2/-2)
src/store/naive/simple_item_factory.h (+2/-1)
src/store/naive/simple_pul.cpp (+4/-2)
src/store/naive/simple_pul.h (+5/-1)
src/types/typemanagerimpl.cpp (+4/-4)
src/zorbaserialization/archiver_consts.h (+2/-1)
src/zorbautils/hashmap_itemh_cache.h (+474/-0)
src/zorbautils/hashmap_itemh_strict.h (+264/-0)
src/zorbautils/hashset_atomic_itemh.h (+2/-1)
test/iterplans/zorba/caching/annotations-inlining.iter (+28/-0)
test/iterplans/zorba/caching/automatic-annotations.iter (+442/-0)
test/iterplans/zorba/xray/ppm_10.iter (+2/-2)
test/rbkt/ExpQueryResults/zorba/caching/annotations-compatibility.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/annotations-inlining.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/argument-sequence-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/argument-sequence-02.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/automatic-annotations.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/deep-equal-ext-cache-01.xml.res (+11/-0)
test/rbkt/ExpQueryResults/zorba/caching/deep-equal-ext-sd-01.xml.res (+11/-0)
test/rbkt/ExpQueryResults/zorba/caching/deep-equal-udf-cache-01.xml.res (+11/-0)
test/rbkt/ExpQueryResults/zorba/caching/deep-equal-udf-sd-01.xml.res (+11/-0)
test/rbkt/ExpQueryResults/zorba/caching/ignore-argument-ext-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/ignore-argument-udf-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/key-match-ext-cache.xml.res (+21/-0)
test/rbkt/ExpQueryResults/zorba/caching/key-match-ext-sd-01.xml.res (+21/-0)
test/rbkt/ExpQueryResults/zorba/caching/key-match-ext-sd-02.xml.res (+21/-0)
test/rbkt/ExpQueryResults/zorba/caching/key-match-udf-cache.xml.res (+21/-0)
test/rbkt/ExpQueryResults/zorba/caching/key-match-udf-sd-01.xml.res (+21/-0)
test/rbkt/ExpQueryResults/zorba/caching/key-match-udf-sd-02.xml.res (+21/-0)
test/rbkt/ExpQueryResults/zorba/caching/lazy-parameters-ext.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/lazy-parameters-udf.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/simple-01.xml.res (+6/-0)
test/rbkt/ExpQueryResults/zorba/caching/simple-02.xml.res (+6/-0)
test/rbkt/ExpQueryResults/zorba/caching/simultaneous-partial-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/simultaneous-partial-02.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/snapshots-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/snapshots-02.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/snapshots-03.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/snapshots-04.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/snapshots-05.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/snapshots-06.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/streaming-ext-cache-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/streaming-ext-sd-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/streaming-udf-cache-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/caching/streaming-udf-sd-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/dctx/copy-modify-return.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/dctx/exit-expression.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/dctx/external-sequential-function-call.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/dctx/external-updating-function-call.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/dctx/global-variables.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/dctx/local-variables.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/dctx/non-sequential-concat.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/dctx/pul-application.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/dctx/updating-function-call.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/dctx/variable-declaration.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/dctx/while-expression.xml.res (+1/-0)
test/rbkt/Queries/zorba/caching/annotations-compatibility.xq (+30/-0)
test/rbkt/Queries/zorba/caching/annotations-incompatibility-01.spec (+1/-0)
test/rbkt/Queries/zorba/caching/annotations-incompatibility-01.xq (+7/-0)
test/rbkt/Queries/zorba/caching/annotations-incompatibility-02.spec (+1/-0)
test/rbkt/Queries/zorba/caching/annotations-incompatibility-02.xq (+7/-0)
test/rbkt/Queries/zorba/caching/annotations-incompatibility-03.spec (+1/-0)
test/rbkt/Queries/zorba/caching/annotations-incompatibility-03.xq (+7/-0)
test/rbkt/Queries/zorba/caching/annotations-inlining.xq (+21/-0)
test/rbkt/Queries/zorba/caching/annotations-literals-01.spec (+1/-0)
test/rbkt/Queries/zorba/caching/annotations-literals-01.xq (+8/-0)
test/rbkt/Queries/zorba/caching/annotations-literals-02.spec (+1/-0)
test/rbkt/Queries/zorba/caching/annotations-literals-02.xq (+8/-0)
test/rbkt/Queries/zorba/caching/annotations-literals-03.spec (+1/-0)
test/rbkt/Queries/zorba/caching/annotations-literals-03.xq (+8/-0)
test/rbkt/Queries/zorba/caching/annotations-literals-04.spec (+1/-0)
test/rbkt/Queries/zorba/caching/annotations-literals-04.xq (+8/-0)
test/rbkt/Queries/zorba/caching/annotations-requirements-01.spec (+1/-0)
test/rbkt/Queries/zorba/caching/annotations-requirements-01.xq (+7/-0)
test/rbkt/Queries/zorba/caching/argument-sequence-01.xq (+11/-0)
test/rbkt/Queries/zorba/caching/argument-sequence-02.xq (+4/-0)
test/rbkt/Queries/zorba/caching/automatic-annotations.xq (+125/-0)
test/rbkt/Queries/zorba/caching/deep-equal-ext-cache-01.xq (+53/-0)
test/rbkt/Queries/zorba/caching/deep-equal-ext-sd-01.xq (+53/-0)
test/rbkt/Queries/zorba/caching/deep-equal-udf-cache-01.xq (+59/-0)
test/rbkt/Queries/zorba/caching/deep-equal-udf-sd-01.xq (+59/-0)
test/rbkt/Queries/zorba/caching/ignore-argument-ext-01.xq (+22/-0)
test/rbkt/Queries/zorba/caching/ignore-argument-udf-01.xq (+32/-0)
test/rbkt/Queries/zorba/caching/key-match-ext-cache.xq (+60/-0)
test/rbkt/Queries/zorba/caching/key-match-ext-sd-01.xq (+60/-0)
test/rbkt/Queries/zorba/caching/key-match-ext-sd-02.xq (+57/-0)
test/rbkt/Queries/zorba/caching/key-match-udf-cache.xq (+68/-0)
test/rbkt/Queries/zorba/caching/key-match-udf-sd-01.xq (+68/-0)
test/rbkt/Queries/zorba/caching/key-match-udf-sd-02.xq (+72/-0)
test/rbkt/Queries/zorba/caching/lazy-parameters-ext.xq (+7/-0)
test/rbkt/Queries/zorba/caching/lazy-parameters-udf.xq (+20/-0)
test/rbkt/Queries/zorba/caching/simple-01.xq (+36/-0)
test/rbkt/Queries/zorba/caching/simple-02.xq (+20/-0)
test/rbkt/Queries/zorba/caching/simultaneous-partial-01.xq (+27/-0)
test/rbkt/Queries/zorba/caching/simultaneous-partial-02.xq (+13/-0)
test/rbkt/Queries/zorba/caching/snapshots-01.xq (+21/-0)
test/rbkt/Queries/zorba/caching/snapshots-02.xq (+22/-0)
test/rbkt/Queries/zorba/caching/snapshots-03.xq (+24/-0)
test/rbkt/Queries/zorba/caching/snapshots-04.xq (+13/-0)
test/rbkt/Queries/zorba/caching/snapshots-05.xq (+14/-0)
test/rbkt/Queries/zorba/caching/snapshots-06.xq (+16/-0)
test/rbkt/Queries/zorba/caching/streaming-ext-cache-01.xq (+5/-0)
test/rbkt/Queries/zorba/caching/streaming-ext-sd-01.xq (+5/-0)
test/rbkt/Queries/zorba/caching/streaming-udf-cache-01.xq (+15/-0)
test/rbkt/Queries/zorba/caching/streaming-udf-sd-01.xq (+15/-0)
test/rbkt/Queries/zorba/dctx/copy-modify-return.xq (+8/-0)
test/rbkt/Queries/zorba/dctx/exit-expression.xq (+9/-0)
test/rbkt/Queries/zorba/dctx/external-sequential-function-call.xq (+6/-0)
test/rbkt/Queries/zorba/dctx/external-updating-function-call.xq (+6/-0)
test/rbkt/Queries/zorba/dctx/global-variables.xq (+6/-0)
test/rbkt/Queries/zorba/dctx/local-variables.xq (+11/-0)
test/rbkt/Queries/zorba/dctx/non-sequential-concat.xq (+3/-0)
test/rbkt/Queries/zorba/dctx/pul-application.xq (+5/-0)
test/rbkt/Queries/zorba/dctx/updating-function-call.xq (+11/-0)
test/rbkt/Queries/zorba/dctx/variable-declaration.xq (+9/-0)
test/rbkt/Queries/zorba/dctx/while-expression.xq (+9/-0)
test/rbkt/Queries/zorba/updates/upd14.xq (+1/-1)
Branch information
Recent revisions
- 11721. By Federico Cavalieri
-
Fix external function definition leak
Fixed util-tests module documentation - 11714. By Federico Cavalieri
-
Fixed external functions skip iterator
Approved: Federico Cavalieri, Matthias Brantner - 11712. By William Candillon
-
Update documentation on modules.
Approved: Matthias Brantner, William Candillon
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:zorba