Re: optimizing space for array of booleans
| From: | leledumbo | Date: | Tue, 24 Feb 2009 02:03:40 +0000 |
| Subject: | Re: optimizing space for array of booleans | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288718@lists.php.net to get a copy of this message | ||
> you should not worry about optimizing boolean values unless you would store
them in database.
I DO need to store them in a database, that's why I'm asking. I won't care
if I only use PHP, since it won't keep my data in memory for a long time.
> anyways, use bitwise operators
I think I've stated that I don't want to use bitwise operations. It's OK for
small sets, but not for a set with about 200 elements. Anyway, I found
bitset library in PECL, but I found no documentation at all.
--
View this message in context: http://www.nabble.com/optimizing-space-for-array-of-booleans-tp22159131p22174206.html
Sent from the PHP - General mailing list archive at Nabble.com.