LUMIERA.clone/tests/library
Ichthyostega 2e1df16bdc settle on a concrete implementation approach based on inheritance chain
After some reconsideration, I decide to stick to the approach with the closures,
but to use a metaprotramming technique to build an inheritance chain.
While I can not decide on the real world impact of storing all those closures,
in theory this approach should enable the compiler to remove all of the
storage overhead. Since, when storing the result into an auto variable
right within scope (as demonstrated in the test), the compiler
sees the concrete type and might be able to boil down the actual
generated virtual function implementations, thereby inlining the
given closures.

Whereas, on the other hand, if we'd go the obvious conventional route
and place the closures into a Map allocated on the stack, I wouldn't
expect the compiler to do data flow analysis to prove this allocation
is not necessary and inline it away.


NOTE: there is now guarantee this inlining trick will ever work.
And, moreover, we don't know anything regarding the runtime effect.
The whole picture is way more involved as it might seem at first sight.
Even if we go the completely conventional route and require every
participating object to supply an implementation of some kind of
"Serializable" interface, we'll end up with a (hand written!)
implementation class for each participating setup, which takes
up space in the code segment of the executable. While the closure
based approach chosen here, consumes data segment (or heap) space
per instance for the functors (or function pointers) representing
the closures, plus code segment space for the closures, but the
latter with a way higher potential for inlining, since the closure
code and the generated virtual functions are necessarily emitted
within the same compilation unit and within a local (inline, not
publickly exposed) scope.
2015-04-05 18:26:49 +02:00
..
advice fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
c-lib reduce the load of some tests 2014-10-18 05:09:18 +02:00
diff settle on a concrete implementation approach based on inheritance chain 2015-04-05 18:26:49 +02:00
meta Fix initialisation order problem, triggered in Clang (#928) 2014-09-25 02:50:02 +02:00
query Switch from TR1 preveiw to the new standard headers 2014-04-03 22:42:48 +02:00
test Test helper to show demangled C++ names 2014-11-22 03:31:59 +01:00
allocation-cluster-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
app-config-test.cpp re-arrange tests according to layer structure 2013-01-07 05:43:01 +01:00
bool-checkable-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
cmdline-wrapper-test.cpp remove any remaining use of boost::lambda 2014-05-12 01:12:45 +02:00
custom-shared-ptr-test.cpp Ticket #942: introduce move semantics for our custom shared-ptr-wrapper lib::P 2014-04-28 01:06:40 +02:00
del-stash-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
dependency-factory-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
DIR_INFO re-arrange tests according to layer structure 2013-01-07 05:43:01 +01:00
exceptionerrortest.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
format-helper-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
format-string-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
functor-util-test.cpp Switch from TR1 preveiw to the new standard headers 2014-04-03 22:42:48 +02:00
hash-generator-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
hash-indexed-test.cpp Switch from TR1 preveiw to the new standard headers 2014-04-03 22:42:48 +02:00
hash-standard-to-boost-bridge-test.cpp extend the unit-test to verify usage in hashtables 2014-08-18 06:03:41 +02:00
helloworldtest.cpp fix long standing error in testsuite runner 2014-05-09 00:56:31 +02:00
hierarchy-orientation-indicator-test.cpp Switch from TR1 preveiw to the new standard headers 2014-04-03 22:42:48 +02:00
item-wrapper-test.cpp Switch from TR1 preveiw to the new standard headers 2014-04-03 22:42:48 +02:00
iter-adapter-stl-test.cpp half hearted fix: order of hashmap entries is implementation dependent 2014-05-09 01:45:10 +02:00
iter-adapter-test.cpp fix long standing error in testsuite runner 2014-05-09 00:56:31 +02:00
iter-explorer-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
iter-queue-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
iter-source-test.cpp half hearted fix: order of hashmap entries is implementation dependent 2014-05-09 01:45:10 +02:00
iter-stack-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
itertools-test.cpp fix long standing error in testsuite runner 2014-05-09 00:56:31 +02:00
lifecycletest.cpp re-arrange tests according to layer structure 2013-01-07 05:43:01 +01:00
linked-elements-test.cpp Switch from TR1 preveiw to the new standard headers 2014-04-03 22:42:48 +02:00
maybe-value-test.cpp Switch from TR1 preveiw to the new standard headers 2014-04-03 22:42:48 +02:00
multifact-argument-test.cpp Reworked MultiFact(#388): switch in the new implementation 2014-09-14 23:58:05 +02:00
multifact-singleton-test.cpp Reworked MultiFact(#388): switch in the new implementation 2014-09-14 23:58:05 +02:00
multifact-test.cpp Reworked MultiFact(#388): switch in the new implementation 2014-09-14 23:58:05 +02:00
null-value-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
opaque-holder-test.cpp DOC: reorganise the Doxygen configuration and structure 2013-10-25 06:34:38 +02:00
opaque-unchecked-buffer-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
optional-ref-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
polymorphic-value-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
query-text-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
ref-array-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
removefromsettest.cpp C++11 transition: get compilation to pass again 2014-04-28 01:34:03 +02:00
sanitised-identifier-test.cpp re-arrange tests according to layer structure 2013-01-07 05:43:01 +01:00
scoped-collection-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
scoped-holder-test.cpp CLang-compatibility: temporary fix for bool conversion 2014-08-28 23:28:39 +02:00
scoped-holder-transfer-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
scoped-ptrvect-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
search-path-splitter-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
simple-allocator-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
singleton-subclass-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
singleton-test.cpp Switch from TR1 preveiw to the new standard headers 2014-04-03 22:42:48 +02:00
singleton-testmock-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
sub-id-test.cpp Switch from TR1 preveiw to the new standard headers 2014-04-03 22:42:48 +02:00
symbol-hashtable-test.cpp Switch from TR1 preveiw to the new standard headers 2014-04-03 22:42:48 +02:00
symbol-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
test-target-obj.hpp WIP: stubbed factory functions 2013-10-18 02:49:37 +02:00
typed-allocation-manager-test.cpp Switch from TR1 preveiw to the new standard headers 2014-04-03 22:42:48 +02:00
unique-malloc-owner-test.cpp Lib: helper to deal with malloced memory automatically 2014-11-16 04:26:12 +01:00
util-collection-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
util-floordiv-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
util-floorwrap-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
util-foreach-test.cpp WIP: pondering diff representation variants 2014-11-10 04:00:39 +01:00
vector-transfer-test.cpp fix **** in doxygen comments 2013-10-24 23:06:36 +02:00
verb-function-dispatch-test.cpp DSL verb token: move to distinct definition header 2014-11-28 12:50:58 +01:00