Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Fastest way to retrieve and write html contents to file Date: Mon, 2 May 2016 14:40:31 +1000 Lines: 15 Message-ID: References: <1462163671.1159335.595256017.204863FE@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de tTwHVCOrMxSLeNEaNbv7GA4GL3MhAC0EQeEAloKE5haA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:file': 0.07; 'cc:addr:python-list': 0.09; 'second.': 0.09; 'python': 0.10; 'python.': 0.11; '2016': 0.16; 'dfs': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'loops': 0.16; 'pathological': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'language': 0.19; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'stephen': 0.22; 'header:In-Reply- To:1': 0.24; 'mon,': 0.24; 'message-id:@mail.gmail.com': 0.27; 'disk': 0.27; 'you?': 0.30; 'operations.': 0.33; 'received:google.com': 0.35; 'something': 0.35; 'asking': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'received:209.85.213': 0.37; "won't": 0.38; 'received:209': 0.38; 'enough': 0.39; 'chrisa': 0.84; 'difference.': 0.84; 'subject:write': 0.84; 'timings': 0.84; 'to:none': 0.91; 'lot,': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=yHwOMmrkNYdwGNoNm8w44uUDgNLyMPFIx5AxZc3g0O4=; b=famH6ZdHWIYYtG5tRe5pDWSu3es231ZKb1OCiG4tIom1Z+72bWlN81+oLkq5BIQusO lK4PZ6n/AScGH+Qz3tpZHsgev+Zy6SoSuJeZ4R7cEQ63Elm+1z0wv6imUEZ97oRWtQtR jK7r3QEaNO0quoKfUuoS9ngDWUQ1cbGk8m4EN2lXL3DJSwhXzQe6FrBin7F9oFu0Pdx8 5GbIQ3JlLU9sIMdbZMvbhVa/eHhU8lOK6mB6XE1uFJ49QF2Bzx4rHRBNgYZMcAUbP3vK oVlXz4EHkrwoEV6FK5OFK9fqiA1tA+/bnd0y+PhNpjzcYVnSfM/vV+JMCKOxwlTFYCv0 T2EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=yHwOMmrkNYdwGNoNm8w44uUDgNLyMPFIx5AxZc3g0O4=; b=g4oeHyGIWISav8LmVW8rin0Hs/NELXxMgXEbx5Ru6CQhtqpmWy2gUM7uB2rReL+ooj nFdlj/nDNiVTkAsuvRibaDE0QvstBDqdWeLJsN8w4nb6azmyqaBpHK2E0UtUkG+jccQ9 KX4VQfF71M1A5wqSxaMygB9idMHxdUQ36wzhU245KJCnmQNWx23Sd/3KPlnLr/anBPv4 RKj5v8WStAxtq1rKnlV8IFdBOXDAwMnYgXiz55KN6U6XjNpIzjZfKq5JKaSXo2p1q2Rk rxOlCnahxI3zrM8D/YP6zlpEEfnGWplzv1VM1oybFrWBtxYug1bqLuSNJN9jvopWetmL IKaA== X-Gm-Message-State: AOPr4FWP2sA2t8tKodSI29flvrL9yYf/Fno6wzQMQbA6vExKbPNjhiMEXTB4HiHhFLvE2mkRcNUB5SaYvxDDWQ== X-Received: by 10.50.43.168 with SMTP id x8mr18105776igl.13.1462164031755; Sun, 01 May 2016 21:40:31 -0700 (PDT) In-Reply-To: <1462163671.1159335.595256017.204863FE@webmail.messagingengine.com> 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: X-Mailman-Original-References: <1462163671.1159335.595256017.204863FE@webmail.messagingengine.com> Xref: csiph.com comp.lang.python:107970 On Mon, May 2, 2016 at 2:34 PM, Stephen Hansen 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