Code Monkey home page Code Monkey logo

omcache's People

Contributors

melor avatar ormod avatar peekeri avatar saaros avatar sanga avatar thedrow avatar

Stargazers

 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

omcache's Issues

Replace fd_map array with a hash table

24a17bd says:

fd_map array now starts from the lowest seen socket (but does not currently
resize it if the lowest socket goes away) which may use up a little less
memory in case the program already had a couple hundred thousand lower
numbered sockets, but the mapping will still be bloated in an environment
that handles tons of sockets with just a few memcache connections.

A future OMcache version may replace the fd_map array with a hash table.

Malloc checking

OMcahce doesn't do a lot of memory allocation, but where it does, it doesn't check the return values. Consider doing something about this. Just adding checks for NULL isn't enough, failed allocations need to either call abort() (which isn't a nice thing in a library) or they need to roll back the operation and they need tests to make sure it actually works.

Asynchronous name resolution

Currently OMcache uses getaddrinfo() to resolve names which blocks. Replace it with something else, like optionally using libasyncns or c-ares or something similar.

couple of warnings on clang

Could be (probably spurious) but for the sake of clean build output it'd be nice to fix them:

omcache.c:1021:33: warning: missing field 'key' initializer [-Wmissing-field-initializers]
      omcache_value_t value = {0};
                                ^
omcache.c:1539:29: warning: missing field 'key' initializer [-Wmissing-field-initializers]
  omcache_value_t value = {0};

Async set-like commands interface

There is one async c memcached client library, thanks for it.
Internally all command use omcache_io. But there is no async interface for set commands.
Do you plan to add such functions?

Is this project no longer maintained?

There is only one commit between the latest release and now.
Have you guys stopped maintaining the project?
There's still a lot of work to be done in terms of documentation and performance benchmarks.

Django integration

We need to create a django backend that allows us to use omcache from within Django.
I'd do it myself since it's pretty simple but there's no documentation yet.

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.