mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Exp/compress candidates (#942)
* Compress block candidates in validator-session * Compress blocks in full-node (disabled for now) --------- Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
9452c367e4
commit
0bcebe8a0e
21 changed files with 548 additions and 112 deletions
|
@ -15,6 +15,7 @@ if (NOT DEFINED CMAKE_INSTALL_LIBDIR)
|
|||
endif()
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
find_package(LZ4)
|
||||
if (NOT ZLIB_FOUND)
|
||||
pkg_check_modules(ZLIB zlib)
|
||||
endif()
|
||||
|
@ -280,6 +281,15 @@ if (TDUTILS_MIME_TYPE)
|
|||
)
|
||||
endif()
|
||||
|
||||
if (LZ4_FOUND)
|
||||
set(TD_HAVE_LZ4 1)
|
||||
set(TDUTILS_SOURCE
|
||||
${TDUTILS_SOURCE}
|
||||
td/utils/lz4.cpp
|
||||
td/utils/lz4.h
|
||||
)
|
||||
endif()
|
||||
|
||||
set(TDUTILS_TEST_SOURCE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test/buffer.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test/ConcurrentHashMap.cpp
|
||||
|
@ -338,6 +348,11 @@ endif()
|
|||
if (CRC32C_FOUND)
|
||||
target_link_libraries(tdutils PRIVATE crc32c)
|
||||
endif()
|
||||
|
||||
if (LZ4_FOUND)
|
||||
target_link_libraries(tdutils PRIVATE ${LZ4_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if (ABSL_FOUND)
|
||||
target_link_libraries_system(tdutils absl::flat_hash_map absl::flat_hash_set absl::hash)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue