flatbuffers/tests
Malthe Borch e47ca7ab40 Use a hash table to index existing vtables (#5314)
* Use a hash table to index existing vtables

This allows for quick deduplication even in situations where there
might be thousands of vtables due to 'combinatoric explosion'.

This fixes issue #5301.

* Refactor 0-offset trimming

* Improve deduplication benchmark

The routine now generates a set of realistic logical layouts and
uses a timer function that randomly picks a layout for each iteration.

The benchmark runs in batches of # of logical layouts = 1, 10, 100, 1000.

(Note that due to alignment, the actual number of vtables is usually slightly
higher.)
2019-05-06 15:00:02 -07:00
..
docker Fix rust crate for big-endian targets (#5229) 2019-03-08 01:06:25 -08:00
FlatBuffers.Benchmarks Remove byte* property in ByteBufferAllocator (#5191) 2019-02-21 23:36:55 +01:00
FlatBuffers.Test Remove byte* property in ByteBufferAllocator (#5191) 2019-02-21 23:36:55 +01:00
fuzzer Make the Parser independent from the global C-locale (#5028) 2018-11-16 09:24:06 -08:00
include_test
MyGame Make MonsterExtra table a root table (#5315) 2019-05-02 15:12:58 -07:00
namespace_test Struct typetable (#5291) 2019-04-15 11:38:00 -07:00
prototest Fix the proto-enum leaking issue (#5286) 2019-04-11 13:52:01 -07:00
rust_usage_test [Rust] Don't use inner attributes for allow (#5212) 2019-03-09 12:58:27 -08:00
union_vector Fix heap-buffer-overflow if there is a struct within a union 2019-04-19 11:49:49 -07:00
DartTest.sh
generate_code.bat Make MonsterExtra table a root table (#5315) 2019-05-02 15:12:58 -07:00
generate_code.sh Make MonsterExtra table a root table (#5315) 2019-05-02 15:12:58 -07:00
go_test.go [Go] Add mutation functions for vector elements (#5221) 2019-03-05 21:16:26 -08:00
GoTest.sh [Go] Namespaced imports fix (#5097) 2018-12-27 20:57:19 -05:00
JavaScriptTest.js JS- support clear() method on builder (#5109) 2019-01-14 09:21:42 -08:00
JavaScriptTest.sh
JavaScriptUnionVectorTest.js
JavaTest.bat Fixed vector of unions crash in java (#5190) 2019-02-21 19:50:13 +01:00
javatest.bin Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
JavaTest.java Fixed vector of unions crash in java (#5190) 2019-02-21 19:50:13 +01:00
JavaTest.sh Fixed vector of unions crash in java (#5190) 2019-02-21 19:50:13 +01:00
lobstertest.lobster
LuaTest.bat
luatest.lua
monster_extra.fbs Make MonsterExtra table a root table (#5315) 2019-05-02 15:12:58 -07:00
monster_extra_generated.h Make MonsterExtra table a root table (#5315) 2019-05-02 15:12:58 -07:00
monster_test.bfbs Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
monster_test.fbs Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
monster_test.grpc.fb.cc Fix Java generator bug that ignores bidi streaming attribute (#5063) 2018-11-29 10:33:17 -08:00
monster_test.grpc.fb.h Fix Java generator bug that ignores bidi streaming attribute (#5063) 2018-11-29 10:33:17 -08:00
monster_test.schema.json Fixed vectors of enums in object API serialized incorrectly. 2018-11-05 14:33:36 -08:00
monster_test_generated.h Struct typetable (#5291) 2019-04-15 11:38:00 -07:00
monster_test_generated.js Made JS enum declarations compatible with google closure 2019-03-11 14:33:07 -07:00
monster_test_generated.lobster Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
monster_test_generated.rs Ensure we don't subtract with underflow getting enum names (#5246) 2019-04-05 12:30:58 -07:00
monster_test_generated.ts Made JS enum declarations compatible with google closure 2019-03-11 14:33:07 -07:00
monster_test_my_game.example2_generated.dart
monster_test_my_game.example_generated.dart Fixed vectors of enums in object API serialized incorrectly. 2018-11-05 14:33:36 -08:00
monster_test_my_game_generated.dart
monsterdata_extra.json Make MonsterExtra table a root table (#5315) 2019-05-02 15:12:58 -07:00
monsterdata_python_wire.mon Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
monsterdata_test.golden
monsterdata_test.json
monsterdata_test.mon Reduced force_align in tests to 8, to work with --object-api. 2019-02-07 14:51:04 -08:00
phpTest.php
phpUnionVectorTest.php
phpUnionVectorTest.sh
py_test.py Use a hash table to index existing vtables (#5314) 2019-05-06 15:00:02 -07:00
PythonTest.sh
RustTest.bat
RustTest.sh Fix rust crate for big-endian targets (#5229) 2019-03-08 01:06:25 -08:00
test.cpp Make MonsterExtra table a root table (#5315) 2019-05-02 15:12:58 -07:00
test_assert.cpp Enable MSVC assert report box [Abort|Retry|Ignore] if a debugger is present (#5279) 2019-04-08 10:01:41 -07:00
test_assert.h Fixed use of WIN32 needs to be _WIN32. 2019-02-19 10:49:55 -08:00
test_builder.cpp
test_builder.h Removing 'using namespace' usage in test_builder (#5154) 2019-02-05 02:07:05 +01:00
TestAll.sh
TypeScriptTest.sh
unicode_test.json