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

Home » Imported messages » comp.lang.php » Re: Windows binaries 64bit for PHP
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Windows binaries 64bit for PHP [message #177990 is a reply to message #177987] Wed, 09 May 2012 19:31 Go to previous messageGo to previous message
Gregor Kofler is currently offline  Gregor Kofler
Messages: 69
Registered: September 2010
Karma:
Member
Am 2012-05-09 20:36, The Natural Philosopher meinte:
> Gregor Kofler wrote:
>> Am 2012-05-09 15:14, Jerry Stuckle meinte:
>>
>>>> Who said repeatedly rescale? The process I've been talking about is
>>>> more
>>>> like "lazy" scaling.
>>>
>>> OK, so you do it "on the fly" and store the result. That still takes
>>> more time than doing it once and forgetting it. Your way, you have to
>>> check on every request for the image to see if your size exists before
>>> deciding if you need to rescale it or not. Another unnecessary waste of
>>> processing time.
>>
>> Please... Having a page with a bunch of images uploaded by users in
>> various (normally large) sizes the scaling on the fly takes the
>> proverbial ages (i.e. several seconds).
>
> No it doesnt.

It does. People tend to upload their images straight as they come from
their camera/smartphone. And I need them as 300x200 thumbs and in an
enlarged 900x600 something format. Perhaps sharpened.

>> Particularly on shared hosts.
>
> well I cant answer for crap hosts.

Frequently not something the developer can decide.
>
>> Checking for the existence of a file (you know the output size and you
>> changed the file name of you rescaled images accordingly) is negligible.
>> Rescaling happens once, retrieving thousands of times (or more).
>
> Often never used again.

They lookup and/or rescaling happens, when an image is displayed. Not
before. You do the rescaling when it is required, and then you do it
only once. IOW the one-time-storing and the frequent checking for file
existence replaces the frequent on-the-fly resizing. No way, that the
latter one is faster (I do websites which are visited by more than one
person - hopefully).

Gregor
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: PHP Eassy and Difficult
Next Topic:
Goto Forum:
  

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

Current Time: Sat Nov 23 02:44:21 GMT 2024

Total time taken to generate the page: 0.03738 seconds