Giter VIP home page Giter VIP logo

hmsearch's People

Contributors

artfwo avatar petli 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hmsearch's Issues

compilation error

hello,

hmsearch no longer compile under linux 4.9.75-1-lts with g++ 7.2.1 and kyotocabinet 1.2.76 :

hmsearch-master $ LANG=us make
g++ -g -Wall -D_FILE_OFFSET_BITS=64   -c -o hmsearch.o hmsearch.cc
In file included from hmsearch.cc:15:0:
/usr/include/kcdbext.h: In member function 'char* kyotocabinet::IndexDB::get(const char*, size_t, size_t*)':
/usr/include/kcdbext.h:1281:14: error: cannot convert 'bool' to 'char*' in return
       return false;
              ^~~~~
hmsearch.cc: In static member function 'static bool HmSearch::init(const string&, unsigned int, unsigned int, uint64_t, std::__cxx11::string*)':
hmsearch.cc:120:10: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     std::auto_ptr<kyotocabinet::HashDB> db(new kyotocabinet::HashDB);
          ^~~~~~~~
In file included from /usr/include/c++/7.2.1/memory:80:0,
                 from hmsearch.cc:12:
/usr/include/c++/7.2.1/bits/unique_ptr.h:51:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
hmsearch.cc: In static member function 'static HmSearch* HmSearch::open(const string&, HmSearch::OpenMode, std::__cxx11::string*)':
hmsearch.cc:188:10: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     std::auto_ptr<kyotocabinet::PolyDB> db(new kyotocabinet::PolyDB);
          ^~~~~~~~
In file included from /usr/include/c++/7.2.1/memory:80:0,
                 from hmsearch.cc:12:
/usr/include/c++/7.2.1/bits/unique_ptr.h:51:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
make: *** [<builtin>: hmsearch.o] Error 1

regards, lacsaP.

Database size spirals exponentially

The database size grows exponentially when using HashDB on hashed images. Some improvements can be gotten by changing the order in which records are inserted, but for larger data sets this doesn't matter. Completely random hashes result in smaller db sizes than real world hashed image data.

Changing from a HashDB to a TreeDB in Kyoto (branch kyoto-tree) makes the db size significantly smaller, and grows linearly against new inserts, but at the cost of complexity (O(log N) instead of O(1)).

Configure/build script

Create proper configure/build script to replace the simple Makefile.

The standard autoconf/automake/libtool setup is not enticing, so perhaps use waf.

Support multiple backends

The catalog is now running with experimental postgresql support, but we should support the postgres backend officially.

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.