Skip to content

Instantly share code, notes, and snippets.

<?php
ini_set('memory_limit', '2G');
$data = new MyObject(3000000);
benchmark('msgpack', 'msgpack_pack', 'msgpack_unpack', $data);
benchmark('serialize', 'serialize', 'unserialize', $data);
@tuslo
tuslo / ocp.php
Last active August 29, 2015 14:07 — forked from kabel/ocp.php
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok, n1xim, pennedav, kabel)
Version: 0.2.0
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.2.0 0000-00-00 Updated page layout/styles and restructure code to be more MVC-like (kabel)
implemented HTTP Basic authentication (pennedav)
@tuslo
tuslo / pr.md
Created June 5, 2014 09:02 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: