Re: PHP 64-bit binaries?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi Justin!

On Sun, Oct 16, 2011 at 3:57 PM, Justin Dearing <zippy1981@xxxxxxxxx> wrote:
> On Sun, Oct 16, 2011 at 9:12 AM, Pierre Joye <pierre.php@xxxxxxxxx> wrote:
>
>> PHP is slower in 64bit than in 32bit modes. Databases (be oracle,
>> mysql or other) are another stories and many of them are faster.
>> However one does not have to run php in 64bit mode to talk to database
>> servers running in 64bit mode.
>>
>> Those are good points, but sometimes 64 bit php would make sense. For
> example, what if I had a script that I ran from the command line that edited
> xml files that were more than 3 gigabytes in size? Lets assume that this was
> the only way to get this data, and this script was putting the data in a
> database. I would not be able to do that operation in 32 bit php because the
> entire xml file could not be loaded into memory.

Well, right. The only advantage is the largest maximal available
memory. But I'd to say that if one is processing GB of XML data using
DOM, then he should seriously consider xmlreader and xmlwriter. They
are stream based parser and used a constant relatively low memory foot
print.

For the wincache example given above, if an app needs more than a
couple of GB for its user cache, solution like memcache should
seriously be considered. Opcode cache will certainly reach this value
in most cases :)

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux