Skip to content

Instantly share code, notes, and snippets.

/* Test malloc and free performance over time for a specified allocation block size and total. */
#include <iostream>
#include <chrono>
#include <thread>
#include <cstring>
#if 0 // test HeapCompact (1/2)
#ifdef _WIN32
#include <Windows.h>
@kaetemi
kaetemi / gist:77f675d6f20ac7d44aeede4e6b34b76d
Last active October 23, 2017 01:53
Proposed API usage for NeL Network Message Node.js implementation
let nnmessage = require('nnmessage');
let server = nnmessage.createServer();
server.onConnected(function(connection) {
// called whe new client connects
connection.onMessage(....);
});