Re: Suggestion for dbm functions

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Suggestion for dbm functions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-4458@lists.php.net to get a copy of this message
> > I don't think it makes much sense to make this specific to the dbm > > functions. There are already functions that take any PHP data structure > > and convert it to a string and back. See the serialize() function, for > > example. > > Well, much space could be saved by using a binary representation instead > of the string representation. Also, parsing a string must be less > efficient. Finally, the format that serialize() uses seems for me to have > much overhead. An array of 6 integers take up (at least) 50 bytes. That is > when I use small integer values. Higher values (10 digit for example) > makes the overhead would be much worse. Use pack/unpack then if space is an issue. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4458) next »