This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/python | |
| # -*- coding: utf-8; -*- | |
| """ | |
| Copyright (C) 2007-2012 Lincoln de Sousa <[email protected]> | |
| Copyright (C) 2007 Gabriel Falcão <[email protected]> | |
| This program is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU General Public License as | |
| published by the Free Software Foundation; either version 2 of the | |
| License, or (at your option) any later version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| define('OBJECT_COUNT', 20 * 1000); | |
| class Object { | |
| private static $world = array(); | |
| private static $maxGuid = 0; | |
| protected $_guid = null; | |
| public function __construct() { | |
| self::$world[$this->_guid = self::$maxGuid++] = $this; | |
| } |
NewerOlder