Re: optimizing space for array of booleans
| From: | leledumbo | Date: | Tue, 24 Feb 2009 08:24:09 +0000 |
| Subject: | Re: optimizing space for array of booleans | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288729@lists.php.net to get a copy of this message | ||
Just tried serializing array of 256 booleans and printing the length, it
really shocked me: 2458. This project will be used by about 500 students, so
in the worst case (all students enroll all courses) it will eat 500 * 2458
(assuming one character eats one byte) = 1229000 Bytes ~= 1.2 MB. Not a big
deal, eh?
--
View this message in context: http://www.nabble.com/optimizing-space-for-array-of-booleans-tp22159131p22177808.html
Sent from the PHP - General mailing list archive at Nabble.com.