FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » query: how many use PHP for linux scripts
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: query: how many use PHP for linux scripts [message #185974 is a reply to message #185968] Fri, 16 May 2014 07:12 Go to previous messageGo to previous message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma:
Senior Member
On 05/15/2014 10:48 AM, The Natural Philosopher wrote:
> On 15/05/14 17:13, crankypuss wrote:
>> On 05/15/2014 07:52 AM, The Natural Philosopher wrote:
>>> On 15/05/14 13:34, Jasen Betts wrote:
>>>> including files with lines larger than RAM + swap.
>>>
>>> THAT is challenge!
>>>
>>> Have to use temporary files..
>>>
>>>
>>
>> Whatever for? You need enough "disk" space to contain the input file
>> and the output file, you need enough memory to contain the two largest
>> contiguous records
>
> but in the case specified, you dont have that space.
>
>
> and the code to read-2-(swap-2)-write-2. Whether the
>> swap involves actual data movement or not is a nit, it boils down to a
>> file-copy 2 lines at a time. (Wouldn't surprise me if the "cp" command
>> has some option for this kind of thing along with the rest of the
>> kitchen sink... or is that "tar" that I'm thinking of...)
>>
>> Unless of course I'm missing something, I'm feeling stupider with each
>> post about this exercise that I read. <g>
>
> "*lines* larger than RAM + swap" is the key.

Ah, now I see. If you want to make up a difficult problem, that's
swell. Throw in the additional requirement that there are so many
records that there isn't enough "RAM + swap" to contain all the record
offsets. Add an architectural requirement that it support bytes of
infinite and variable length if that makes it more fun.

PHP has access to the same stream-io routines in stdlib that a C
application would use. I have little interest in unsolvable theoretical
problems when so many practical problems remain poorly solved.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to get the POST name of a field in a form that uses a counter
Next Topic: PHP-SOAP/5.4.21 SoapClient terminating POST without waiting for reply, but still complaining "error fetching http headers".
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 06:47:12 GMT 2024

Total time taken to generate the page: 0.03837 seconds