- Jul 05, 2016
-
-
Romain Gilles authored
Revert "Create a maven like project structure for java development. Make it OSGi compliant. Generate the flatbuffers code for testing (example)." This reverts commit 9875b0e0.
-
- Jun 07, 2016
-
-
Romain Gilles authored
Create a maven like project structure for java development. Make it OSGi compliant. Generate the flatbuffers code for testing (example). Java developer are mostly comfortable with maven project structure. One one the main concept behind maven is convention. If you follow the maven project convention then your development team will get more effective as they now this project structure and can easily find the production code versus the test code. In this pull request I have structured the java project around 2 main parts: * the `flatbuffers` project. This project is the api / lib project and contains the test code structure + an example of code generation for testing. This avoid to commit generated code. Pre-configure JUnit for test driven development and make this project OSGi compliant. * the `jmh` project. This project aims to provide a placeholder for micro-benchmarking. JMH is a 'de facto' standard for micro benchmarking you can find more details here: http://openjdk.java.net/projects/code-tools/jmh/ For now I didn't move the JavaTest class but it could be a next step with a migration to the JUnit framework. The only impacts are the move of the class and the project structure => no code change.
-
- Apr 19, 2016
-
-
pjulien authored
-
pjulien authored
-
pjulien authored
Removes the following allocations: - ``CharsetDecoder`` is reused between calls - ``CharBuffer#wrap`` removed in favor of heap based char buffer that is reused - Temporary ``char[]``, an intermediate copy inside ``StringCoding`` - Another ``char[]``, this is needed because ``StringCoding`` uses a ``CharBuffer`` internally but returns a ``char[]``. Extra characters need to be trimmed so this means yet another allocation - Yet another ``char[]`` directly from ``__string`` for non-heap based buffers Removes the following copies - No copy is performed to trim the allocation since a ``CharBuffer`` is used directly - For non-heap based byte buffers, removes the copy that was previously done in the __string function This does need to get the TLS entry which implies at least some contention on the thread object table and a fence.
-
- Apr 17, 2016
-
-
pjulien authored
-
- Jan 19, 2016
-
-
Mark Klara authored
Adding an API reference for the supported languages. General docs cleanup, including a new `tutorial` section that supports all of the supported languages. Added samples for each supported language to mirror the new tutorial page. Cleaned up all the links by making them `@ref` style links, instead of referencing the names of the generated `.html` files. Removed all generated files that were unnecessarily committed. Also fixed the C# tests (two were failing due to a missing file). Bug: b/25801305 Tested: Tested all samples on Ubuntu, Mac, and Android. Docs were generated using doxygen and viewed on Chrome. Change-Id: I2acaba6e332a15ae2deff5f26a4a25da7bd2c954
-
- May 20, 2015
-
-
Wouter van Oortmerssen authored
Change-Id: Id268e35de207c25c809a09071b81eea873c9123e Tested: on Linux.
-
- May 09, 2015
-
-
pjulien authored
When accessing the array directly of a byte buffer, need to offset by ``arrayOffset``
-
- Feb 04, 2015
-
-
pjulien authored
The satellite data of the ``ByteBuffer`` cannot be modified in any way and stay thread safe in the presence of concurrent readers. This implementation is simple and does introduce an allocation, however without it multiple readers will quickly and continuously encounter ``IndexOutOfBoundsException`` exceptions. An alternative, but possibly more controversial, implementation would be to use ``Unsafe``. Using ``Unsafe``, it's possible to do an array copy with a provided buffer index. Change-Id: I851d4034e753b3be2931ee2249ec2c82dde43135
-
- Jan 16, 2015
-
-
Patrick Julien authored
Change-Id: I58b411a2c0f1ee6b856d5b1eaa42787036da1384
-
- Sep 16, 2014
-
-
Wouter van Oortmerssen authored
Bug: 16507831 Change-Id: I5beee18f63f174e425dc1ab395807b578d5f9477 Tested: on Linux.
-
- Sep 15, 2014
-
-
Wouter van Oortmerssen authored
Also cleaned up ByteBuffer usage in general: ByteBuffer.position now universally indicates the start of a ByteBuffer. Change-Id: Ic4bfb98f9df9501b8fc82de2c45db7d7311135ac Tested: on Linux.
-
bml13 authored
Also removed Table extend Constants. Change-Id: I1770b613c58094fa572a3b26a31f01bd5fb8fdbf
-
- Sep 05, 2014
-
-
Wouter van Oortmerssen authored
Also fixed flatc not outputting these identifiers for files compiled on the command-line. Bug: 16983987 Change-Id: I8b714cfea3a8e144fa52133f62b2f7eda6eb044a Tested: on Linux
-
- Sep 03, 2014
-
-
Wouter van Oortmerssen authored
Also added new constructor that allows ByteBuffer reuse. Change-Id: I9c20ea96c67533066461f4e23b0d03b9b47cd068 Tested: on OS X.
-
- Aug 12, 2014
-
-
Bob Potter authored
Change-Id: If032b450230b15224b2661836c8a740398d207c5
-
- Jun 10, 2014
-
-
Wouter van Oortmerssen authored
Change-Id: I4c9f0f722490b374257adb3fec63e44ae93da920 Tested: using VS2010 / Xcode / gcc on Linux.
-