Add arbitrary string type to the native object API (#4218)
authorAlexander Gallego <gallego.alexx@gmail.com>
Mon, 20 Mar 2017 23:02:04 +0000 (19:02 -0400)
committerWouter van Oortmerssen <aardappel@gmail.com>
Mon, 20 Mar 2017 23:02:04 +0000 (16:02 -0700)
commitf2071e4f80bf7ccd924337c7bf1bf33c79e3fc3e
treec02e360d9671235d4051ed898d7d69ff1fecac21
parent9c25ecdcd1e88dde8d7462d7844fe9da19f18a16
Add arbitrary string type to the native object API (#4218)

* Custom strings are very common for optimizations around small objects
  or growth style optimizations, i.e.: grow at 1.57 times vs doubling vs..

  A second common strategy is to cooperate w/ the memory allocator
  see FBString[1] and seastar[2] string for examples.

[1] fbstring: https://github.com/facebook/folly/blob/master/folly/docs/FBString.md
[2] sstring: https://github.com/scylladb/seastar/blob/master/core/sstring.hh
docs/source/CppUsage.md
include/flatbuffers/flatbuffers.h
include/flatbuffers/idl.h
src/flatc.cpp
src/idl_gen_cpp.cpp