Skip to content

Instantly share code, notes, and snippets.

View slauwers's full-sized avatar

Sebastian Lauwers slauwers

  • Interact-IV
  • Perpignan, France
View GitHub Profile
TARGET := solver
LIBS := -lzmq -ljson-c -lpthread -lcrypto
CC := gcc
CFLAGS := -m64 -std=gnu11 -pedantic -Wall -Wshadow -Wpointer-arith \
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Werror \
-Wextra -O3 -g -Isrc
LFLAGS := -Wall
GRIND := valgrind
GRIND_OPTS := --leak-check=full
SRC_DIR := src
@slauwers
slauwers / results
Created February 12, 2015 09:06
The dangers of inlineCallbacks
$ time python /tmp/test_cb.py
done
done
done
done
done
python /tmp/test.py 0.05s user 0.01s system 6% cpu 1.065 total
$ time python /tmp/test_inline.py
done
@slauwers
slauwers / Sample output
Last active August 29, 2015 14:07
Helper class to identify which classes are leaking in unit tests
Grape::Route 87 delta 71
Grape::Util::HashStack 68 delta 28
Grape::Endpoint 56 delta 29
Grape::Request 1 delta 1
Grape::Cookies 1 delta 1
@slauwers
slauwers / gist:b5cf93fd9cbfbd33170c
Created October 20, 2014 08:49
grape refcount delta
Array 1179397 delta 1153267
String 782540 delta 651364
Regexp 513594 delta 510190
Rack::Mount::GeneratableRegexp::DynamicSegment 378015 delta 378015
Hash 313518 delta 310041
Rack::Mount::Analysis::Splitting::Key 48390 delta 48390
Rack::Mount::Route 36134 delta 36134
Regin::Expression 35013 delta 35013
Regin::Options 34390 delta 34390
RubyVM::InstructionSequence 30650 delta 5597