Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Stephen Hansen Newsgroups: comp.lang.python Subject: Re: Fastest way to retrieve and write html contents to file Date: Sun, 01 May 2016 21:34:31 -0700 Lines: 12 Message-ID: References: <1462163671.1159335.595256017.204863FE@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de ZVYUwOwd1JAKYRTbOyEgQAkZVnM2jqHT745XNCK0xvmQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:file': 0.07; 'received:internal': 0.09; 'second.': 0.09; 'python': 0.10; 'python.': 0.11; 'dfs': 0.16; 'loops': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'stephen': 0.22; 'header:In-Reply-To:1': 0.24; 'you?': 0.30; 'asking': 0.35; 'but': 0.36; 'there': 0.36; 'to:addr :python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'really': 0.37; 'received:66': 0.38; 'enough': 0.39; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'subject:write': 0.84; 'lot,': 0.95 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=ixokai.io; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=sm5O26UP54ggzFbLklhO9iklFKg=; b=EvIE1Z fjtDbL4MvKN33Sb8530b3SsNs3YI1DWMVVCu68RFmiaeHvUAyKrSV9j303V5SEqr 1F09NpkLh7pPUMFR1PkMuzRD1jlY8VQ4MHDo5mQkGEqwx/k90h8yE+PRb3y9n8a5 o3TuMeuzAC5s82En86d+r7BASt2psGMzUeJsA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=sm5O26UP54ggzFb LklhO9iklFKg=; b=BB1+zZl3JasYfT4TitYIQKAhJ2DbaG191Q+WSk9DTu2p2XT mIXpLBSpcxhtWbPFA+AvBtb99eKoMTXlMOFE9MvQsBUWIe9y4GA1aVsL3PreUl8l lHhC4Giyrc2LewLIS2QhNzcRnKIkgA6mJ0Xq8wIIVgCLc4qp3Ae6JtmcwQ0M= X-Sasl-Enc: b3rH5WlCtcmvv0UpaaemGvluJ5MKFTYCPFmKEVJN9pnD 1462163671 X-Mailer: MessagingEngine.com Webmail Interface - ajax-491eb5a4 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1462163671.1159335.595256017.204863FE@webmail.messagingengine.com> X-Mailman-Original-References: Xref: csiph.com comp.lang.python:107969 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. -- Stephen Hansen m e @ i x o k a i . i o