diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-07 12:50:07 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-07 12:50:07 +0200 |
commit | c00d5fb305abff370f869dec0e9404f8a4a5646b (patch) | |
tree | 12794ff568d272e7326f6502727443e7928cd64c /tests/CMakeLists.txt | |
parent | b7873e621ef45badaa70e2d285998c486920df4a (diff) | |
download | sink-c00d5fb305abff370f869dec0e9404f8a4a5646b.tar.gz sink-c00d5fb305abff370f869dec0e9404f8a4a5646b.zip |
Use memcpy to copy tables into vectors.
Ideally we wouldn't be copying at all, and somehow cast the table to a vector.
Unfortunately I haven't figured out how to do that, and this solution at least
gets us from 0.065 ms to 0.028 ms in testCreateCommand.
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 8257c8a..a38471f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -2,6 +2,7 @@ add_subdirectory(hawd) | |||
2 | 2 | ||
3 | set(CMAKE_AUTOMOC ON) | 3 | set(CMAKE_AUTOMOC ON) |
4 | include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/hawd) | 4 | include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/hawd) |
5 | include_directories (${CMAKE_CURRENT_BINARY_DIR}/../dummyresource) | ||
5 | 6 | ||
6 | generate_flatbuffers(calendar) | 7 | generate_flatbuffers(calendar) |
7 | 8 | ||