Re: [VOTE] Weak References
| From: | Stas Malyshev | Date: | Thu, 04 Aug 2011 16:35:14 +0000 |
| Subject: | Re: [VOTE] Weak References | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54369@lists.php.net to get a copy of this message | ||
Hi!
On 8/4/11 5:34 AM, Lars Schultz wrote:
No, it's not even remotely like that. Using one intermediary function and doing the DB call is orders of magnitude apart. You asked how you can solve the problem, I showed you how. You can claim you don't like the solution, that's fine, everybody has his own taste. But you can't claim there's no other solution. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227Do not keep object references, keep object IDs. This would make your code a bit more verbose and a bit slower, but weak refs would essentially do the same anyway.This is like saying: do not use objects at all and use the DB for storage. verbosity and slowness is something I'd like to prevent.