• Paulo Pinheiro's avatar
    [FlexBuffers][Java] Implementation of FlexBuffers API (#5476) · 8e6cabb3
    Paulo Pinheiro authored
    * [FlexBuffers][Java] Implementation of FlexBuffers API
    
    This is the initial attemp to implement FlexBuffer on Java.
    
    There is some limitations as compared to the C++ implementation:
      1 - No mutations implemented yet
      2 - Does not parse from json
    
    Also, this initial implementation is not focused and performance, but
    get the basics write. So there is many opportunities for optimization, for instance,
    remove all enums, return CharSequence instead of Strings and object pooling.
    
    * [FlexBuffers][Java] Optimizations and simplification of the Builder  API.
    
    This change removes BitWidth enum in favor of static ints. Also
    make all "reads" APIs closer to C++ implementation (try to cast or convert
    as much as possible, assuming user knows what he is doing). Finally,
    we remove the helper classes for building vectors and maps.
    
    There is no official benchmarks, but the unit tests are running in less
    than 50% for previous runs, which mean those optimizations are worth it.
    
    * [FlexBuffers][Java] Fix Reference::asString behavior
    
    There was a incorrect assumption that strings would be null-terminated, which
    could lead to truncated strings. S now it relies size instead of null-termination.
    
    Other minor improvements
    8e6cabb3
Name
Last commit
Last update
.appveyor Loading commit data...
.bazelci Loading commit data...
.github Loading commit data...
.travis Loading commit data...
CMake Loading commit data...
android Loading commit data...
conan Loading commit data...
dart Loading commit data...
docs Loading commit data...
go Loading commit data...
grpc Loading commit data...
include/flatbuffers Loading commit data...
java/com/google/flatbuffers Loading commit data...
js Loading commit data...
lobster Loading commit data...
lua Loading commit data...
net/FlatBuffers Loading commit data...
php Loading commit data...
python Loading commit data...
reflection Loading commit data...
rust/flatbuffers Loading commit data...
samples Loading commit data...
snap Loading commit data...
src Loading commit data...
tests Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
BUILD Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
WORKSPACE Loading commit data...
appveyor.yml Loading commit data...
build_defs.bzl Loading commit data...
composer.json Loading commit data...
conanfile.py Loading commit data...
package.json Loading commit data...
pom.xml Loading commit data...
readme.md Loading commit data...