Coder Social home page Coder Social logo

renzibei / fph-table Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 4.0 1.61 MB

Flash Perfect Hash Table: an implementation of a dynamic perfect hash table, extremely fast for lookup

CMake 0.24% C++ 99.76%
cpp hashmap hashtable perfect-hash phf c-plus-plus hash-map hash-table container mphf

fph-table's People

Contributors

renzibei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fph-table's Issues

fph::DynamicFphMap insert usage example

There is no usage example for insert(input_iterator, end_iterator). Can you supplement it? what type should input_iterator and end_iterator be? When I set them to iterator of std:: vector<std:: pair<int, int>>, there will be compile errors. Thanks in advance.

Support no exceptions

Hi,

I am developing production application which depend on this library. We have configuration where we enable and disable exceptions. I am able to compile with exceptions but without exception, compilation break. Please support disabling exceptions as well.

Thanks for this library. It's really helpful. :)

Support no exception

Hi,

After updating to latest commit, I am getting following exceptions.

/opt/rh/gcc-toolset-11/root/usr/bin/ld: empty/CMakeFiles/empty.dir/empty/empty_strategy.cpp.o (symbol from plugin): in function `fph::dynamic::detail::ThrowInvalidArgument(char const*)':
(.text+0x0): multiple definition of `fph::dynamic::detail::ThrowInvalidArgument(char const*)'; empty/CMakeFiles/empty.dir/empty/main.cpp.o (symbol from plugin):(.text+0x0): first defined here
/opt/rh/gcc-toolset-11/root/usr/bin/ld: empty/CMakeFiles/empty.dir/empty/empty_strategy.cpp.o (symbol from plugin): in function `fph::dynamic::detail::ThrowInvalidArgument(char const*)':

a good design

missing `#include <utility>`

I got a compile error in martinus/map_benchmark:

/home/martinus/git/map_benchmark/external/fph__noseed_fph_map/include/fph/dynamic_fph_table.h:1509:33: error: no member named 'exchange' in namespace 'std'; did you mean '__exchange'?
                    seed1_(std::exchange(other.seed1_, 0x123456797291071ULL)),
                           ~~~~~^~~~~~~~
                                __exchange

It appears #include <utility> is missing: https://en.cppreference.com/w/cpp/utility/exchange, when I add the include it compiles

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.