Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am markstory on github.
  • I am markstory (https://keybase.io/markstory) on keybase.
  • I have a public key whose fingerprint is 4417 F052 3EC6 ECB5 B7C7 3622 3C07 0F5E 55B3 AEA0

To claim this, I am signing this object:

$ brew install php55
==> Downloading http://www.php.net/get/php-5.5.11.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php55-5.5.11
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
of homebrew-php, or you are using a non-standard
pear.conf location, installation may fail.
==> ./configure --prefix=/usr/local/Cellar/php55/5.5.11 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.5 --with-config-file-path=/usr/local/etc/php/5.5 --with-config-file-scan-dir=/usr/local/etc/php/5.5/conf.d --with-iconv-dir=/usr --enable-dba --with-ndbm=/usr --enable-exif --enable-soap --enab
checking for mmap() using shm_open() shared memory support... no
checking for mmap() using regular file shared memory support... no
$ brew install php54
==> Downloading http://www.php.net/get/php-5.4.27.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php54-5.4.27
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
of homebrew-php, or you are using a non-standard
pear.conf location, installation may fail.
==> ./configure --prefix=/usr/local/Cellar/php54/5.4.27 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.4 --with-config-file-path=/usr/local/etc/php/5.4 --with-config-file-scan-dir=/usr/local/etc/php/5.4/conf.d --with-iconv-dir=/usr --enable-dba --with-ndbm=/usr --enable-exif --enable-soap --enab
==> make
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I ran the same test 5 times, and this is the median result for Reverse
routing. While the numbers may vary in small amounts, the wins in
parse() are very signifcant.
In the store test, I did not try named routes, as this set of routes
was intended to stress test the parsing/matching changes.
------------------------------------------------------
Book Routes - 3.0 HEAD
@markstory
markstory / BookRouteShell.php
Last active August 29, 2015 14:02
Router optimization test file
<?php
namespace App\Console\Command;
use Cake\Console\Shell;
use Cake\Routing\Router;
class BookRouteShell extends Shell {
public function main() {
$this->scoped();
@markstory
markstory / TableTest.php
Created July 31, 2014 04:16
Trying to reproduce the issue José was talking about.
/**
* Tests that patchEntity includes _joinData
* all associations
*
* @return void
*/
public function testPatchEntityJoinData() {
$articles = TableRegistry::get('Articles');
$articles->belongsToMany('Tags');
Idea for future DebugKit.
The current debug kit does a bunch of things right, but has a few short comings that are hard to address in the current design:
* DebugKit is slow - generating the HTML for the toolbar in the originating request is not fast, and DebugKit bloats every request with mountains of HTML.
* DebugKit is easily disrupted by the host page CSS - Having DebugKit on the host page means it is difficult to deliver an excellent UI for debugkit as it frequently gets interference from the host page.
* The History Panel is fragile and relies on Cache being enabled.
I think many of these problems can be solved with a few key changes:
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<?php
App::uses('AppModel', 'Model');
/**
* Article Model
*
* @property Comment $Comment
*/
class Article extends AppModel {
/**
<?php
namespace App\Controller;
use App\Controller\AppController;
/**
* Tags Controller
*
* @property App\Model\Table\TagsTable $Tags
*/