Fastest way to retrieve and write html contents to file

DFS nospam at dfs.com
Mon May 2 01:04:23 EDT 2016


On 5/2/2016 1:00 AM, Stephen Hansen wrote:
> On Sun, May 1, 2016, at 09:50 PM, DFS wrote:
>> On 5/2/2016 12:40 AM, Chris Angelico wrote:
>>> On Mon, May 2, 2016 at 2:34 PM, Stephen Hansen <me+python at ixokai.io> wrote:
>>>> On Sun, May 1, 2016, at 09:06 PM, DFS wrote:
>>>>> Then I tested them in loops - the VBScript is MUCH faster: 0.44 for 10
>>>>> iterations, vs 0.88 for python.
>>>> ...
>>>>> I know it's asking a lot, but is there a really fast AND really short
>>>>> python solution for this simple thing?
>>>>
>>>> 0.88 is not fast enough for you? That's less then a second.
>>>
>>> Also, this is timings of network and disk operations. Unless something
>>> pathological is happening, the language used won't make any
>>> difference.
>>>
>>> ChrisA
>>
>>
>> Unfortunately, the VBScript is twice as fast as any python method.
>
> And 0.2 is twice as fast as 0.1. When you have two small numbers, 'twice
> as fast' isn't particularly meaningful as a metric.

0.2 is half as fast as 0.1, here.

And two small numbers turn into bigger numbers when the webpage is big, 
and soon the download time differences are measured in minutes, not half 
a second.

So, any ideas?



More information about the Python-list mailing list