Logo white

Peter M. Groen / redox

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 152
  • Compare
  • Branches 1
  • Tags 0
  • redox
  • examples
  • simple_sync_loop.cpp
27 Dec, 2014
4 commits
  • num_commands_processed() counts repeated commands too ...
    46752c1e
    Created a pointer Command.rdx (Redox*) to allow commands
    to increment Redox.cmd_count, and simplify a couple of
    other things.
    
    Did a little bit of moving and renaming context objects,
    so the context is always .ctx and commands can always
    be called c.
    Hayk Martirosyan authored
    2014-12-27 18:03:38 -0500  
    Browse File »
  • Add nullptr_t command type, refactor code even more ...
    0d5e3bdf
    Added Command<nullptr_t> which successfully returns NIL
    replies from Redis, with REDOX_OK. Also renamed constants
    from REDISX_ -> REDOX_.
    
    Moved a bunch of code from redox.cpp into command.cpp, where
    it logically makes more sense.
    Hayk Martirosyan authored
    2014-12-27 17:20:18 -0500  
    Browse File »
  • Rename redisx->redox, refactor ...
    fb65a721
    Move as much as possible into the .cpp file, and clean things up.
    Hayk Martirosyan authored
    2014-12-27 15:01:02 -0500  
    Browse File »
  • Removing timer_callbacks global, ev_timer allocation ...
    c21560d9
    Found out that ev_timer watchers have a void* data that allows
    currying information to the libev callbacks! That means I could
    stick the Command* in there and completely get rid of the global
    timer_callbacks map that was needed before.
    
    Additionally, we can move ev_timer into the Command object instead
    of separately allocating it on the heap. Simplifies management.
    
    Implemented a synchronous loop speed test based on the latest
    and greatest command_blocking(). Happy to see it is around
    30k/s, which is 100% network delays.
    Hayk Martirosyan authored
    2014-12-27 05:25:51 -0500  
    Browse File »