efficient / libcuckoo

A high-performance, concurrent hash table
Other
1.61k stars 275 forks source link

cuckoo as headers only #112

Closed WilliamTambellini closed 5 years ago

WilliamTambellini commented 5 years ago

Hi Would cuckoo be convertible to a headers only solution (no .c, no .cpp, no lib) ? Congrats Kind

toojays commented 5 years ago

It already is? You should be able to integrate it into a project using only the .hh files in the libcuckoo directory.

WilliamTambellini commented 5 years ago

Ok indeed, at least map can be used just by including the right header : example :

add_executable(hellohash hellohash.cc) target_include_directories(hellohash PRIVATE ${CMAKE_SOURCE_DIR}) target_compile_options(hellohash PUBLIC "-std=c++11")

target_link_libraries(hellohash libcuckoo) # Not needed

That's a powerful feature perhaps worth it to be mentioned in the main md doc. Tks

manugoyal commented 5 years ago

Yes I agree that this is worth highlighting! Added a commit (f3138045810b2c2e9b59dbede296b4a5194af4f9) which should hopefully make this feature a bit more prominent.