Skip to content

Instantly share code, notes, and snippets.

View danikin's full-sized avatar

Dennis Anikin danikin

  • Mail.Ru Group
  • Moscow
View GitHub Profile
@simonhf
simonhf / hardest.c
Last active January 2, 2018 01:53
experiments with tarantool transactions, fibers, and C box_insert (because Lua string performance sucks)
#include "module.h"
#define MP_SOURCE 1 /* define in a single .c/.cc file */
#include "msgpuck.h"
// https://tarantool.org/doc/tutorials/c_tutorial.html?highlight=stored%20procedure
// CPATH=/usr/include/tarantool/:/usr/include/ gcc -shared -o hardest.so -fPIC hardest.c
char * key_format = "the quick brown fox jumped over the lazy dog the qu %07u ick brown fox ";
char * field_2 = "'{\"0\":{\"1234567890\": 320, \"1234567890\": 1303}}'";