mirror of https://github.com/vee1e/flatbuffers - FlatBuffers: Memory Efficient Serialization Library
Find a file
罗泽轩 d3cd78a87c
[Lua] Add LuaJIT support (#6584)
* [Lua] Add LuaJIT support

Here is the output of LuaTest.sh:

Run with LuaJIT:
built 100 512-byte flatbuffers in 0.16sec: 0.63/msec, 0.31MB/sec
built 1000 512-byte flatbuffers in 0.08sec: 12.06/msec, 5.89MB/sec
built 10000 512-byte flatbuffers in 0.80sec: 12.44/msec, 6.07MB/sec
built 10000 512-byte flatbuffers in 0.33sec: 30.58/msec, 14.93MB/sec
traversed 100 592-byte flatbuffers in 0.04sec: 2.51/msec, 1.42MB/sec
traversed 1000 592-byte flatbuffers in 0.03sec: 31.52/msec, 17.79MB/sec
traversed 10000 592-byte flatbuffers in 0.21sec: 48.77/msec, 27.53MB/sec
Run with Lua 5.3:
built 100 512-byte flatbuffers in 0.02sec: 5.44/msec, 2.66MB/sec
built 1000 512-byte flatbuffers in 0.17sec: 5.74/msec, 2.80MB/sec
built 10000 512-byte flatbuffers in 1.75sec: 5.72/msec, 2.79MB/sec
built 10000 512-byte flatbuffers in 1.38sec: 7.26/msec, 3.55MB/sec
traversed 100 592-byte flatbuffers in 0.00sec: 27.64/msec, 15.60MB/sec
traversed 1000 592-byte flatbuffers in 0.03sec: 30.46/msec, 17.20MB/sec
traversed 10000 592-byte flatbuffers in 0.34sec: 29.62/msec, 16.72MB/sec

* [Lua] Better usage description

* update according to the review
2021-04-30 10:38:16 -07:00
.appveyor
.bazelci
.github chore: ensure bash is used to generate code (#6577) 2021-04-19 14:30:55 -07:00
.travis [GO] Tries to add go format to the CI (#6518) 2021-03-18 11:03:44 -07:00
android
bazel [grpc] Support latest version of grpc PoC (#6338) 2021-03-25 12:12:35 -07:00
CMake [CMake] generate pkg-config flatbuffers.pc file (#6455) 2021-02-22 10:23:38 -08:00
conan
dart
docs [Lua] Add LuaJIT support (#6584) 2021-04-30 10:38:16 -07:00
go GetUOffsetT must get value by GetUint32 not GetInt32 (#6072) 2021-02-18 18:38:25 -08:00
grpc [swift] Implements union strings (#6589) 2021-04-24 14:47:24 +03:00
include/flatbuffers Add advance feature indicators to reflection (#6546) 2021-04-27 10:10:59 -04:00
java/com/google/flatbuffers
js
kotlin [Kotlin][FlexBuffers] Add support for Kotlin-iOS (#6564) 2021-04-15 11:29:51 -07:00
lobster
lua [Lua] Add LuaJIT support (#6584) 2021-04-30 10:38:16 -07:00
mjs
net/FlatBuffers Revert "[C#] Fix truncated ArraySegment<byte> if elementSize != 1 (#6462)" (#6488) 2021-02-23 11:30:07 -08:00
php
python
reflection Add advance feature indicators to reflection (#6546) 2021-04-27 10:10:59 -04:00
rust Introduce new_from_vec in Rust (also fix formatting) (#6599) 2021-04-29 18:23:22 -04:00
samples Mark endian_scalar as unsafe. (#6588) 2021-04-26 09:18:58 -04:00
scripts [CI] Adds Code Generation tests on Github Actions (#6482) 2021-02-23 08:51:39 +03:00
snap
src [Lua] GetRootAs can accept strings. Made Luatest Benchmarks optional (#6593) 2021-04-27 13:02:13 -07:00
swift [swift] Implements union strings (#6589) 2021-04-24 14:47:24 +03:00
tests [Lua] Add LuaJIT support (#6584) 2021-04-30 10:38:16 -07:00
ts
.clang-format
.editorconfig
.eslintrc.js
.gitattributes
.gitignore [TS] Add Build TS to CI jobs (#6524) 2021-04-12 10:41:59 -07:00
.travis.yml Limit formatter to pull requests only (#6540) 2021-04-01 20:09:43 +03:00
appveyor.yml
BUILD.bazel [CMake] Renames BUILD files (#6457) 2021-02-11 10:16:57 -08:00
build_defs.bzl
CMakeLists.txt [grpc] Support latest version of grpc PoC (#6338) 2021-03-25 12:12:35 -07:00
composer.json
conanfile.py
CONTRIBUTING.md
Formatters.md
LICENSE.txt
package.json
pom.xml
readme.md
swift.swiftformat [Swift] Removes allman rule (#6519) 2021-03-17 13:22:49 +03:00
tsconfig.json
tsconfig.mjs.json
WORKSPACE [grpc] Support latest version of grpc PoC (#6338) 2021-03-25 12:12:35 -07:00

logo FlatBuffers

Build Status Build status Join the chat at https://gitter.im/google/flatbuffers Discord Chat Twitter Follow

FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.

Go to our landing page to browse our documentation.

Supported operating systems

  • Windows
  • MacOS X
  • Linux
  • Android
  • And any others with a recent C++ compiler.

Supported programming languages

  • C++
  • C#
  • C
  • Dart
  • Go
  • Java
  • JavaScript
  • Lobster
  • Lua
  • PHP
  • Python
  • Rust
  • TypeScript

and more in progress...

Contribution

To contribute to this project, see CONTRIBUTING.

Licensing

Flatbuffers is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.