Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.156 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.69; '*S*': 0.00; 'python': 0.10; 'itself.': 0.11; 'fetches': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'wrote:': 0.16; 'shell': 0.18; 'variable': 0.18; 'controlled': 0.22; 'am,': 0.23; 'header:In- Reply-To:1': 0.24; 'requests': 0.25; 'script': 0.25; 'header:User- Agent:1': 0.26; 'sequence': 0.27; 'possibly': 0.32; 'problem': 0.33; 'right?': 0.33; 'message-id:@gmail.com': 0.34; 'know.': 0.34; 'list': 0.34; 'could': 0.35; 'subject:time': 0.35; 'something': 0.35; 'but': 0.36; 'too': 0.36; '(and': 0.36; 'urls': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'received:org': 0.37; 'beyond': 0.37; 'someone': 0.38; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'charset:windows-1252': 0.62; 'more': 0.63; 'different': 0.63; 'more.': 0.63; 'times': 0.63; 'you.': 0.64; 'reply': 0.68; 'cecil': 0.84; 'curl': 0.84; 'suspicion': 0.84; 'westerhof': 0.84 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Sat, 22 Aug 2015 09:33:21 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Sometimes bottle takes a lot of time References: <87si7cnxq6.fsf@Equus.decebal.nl> <87a8tjo8oz.fsf@Equus.decebal.nl> In-Reply-To: <87a8tjo8oz.fsf@Equus.decebal.nl> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1440257612 news.xs4all.nl 23761 [2001:888:2000:d::a6]:48351 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:95561 On 08/22/2015 05:37 AM, Cecil Westerhof wrote: >> I don't know. Is it bottle, or the browser, or something completely >> different that eats the extra time? > > I really do not know. I suspect bottle, but I am new to this, so I > value the suspicion of someone who has more experience more. :-D These are requests performed from browser Javascript (ajax), right? Could you write a shell script that fetches these urls in sequence using curl or wget, simulating the web browser? This would let you check times in a controlled way, without the variable of the browser itself. While it's true this particular problem is possibly beyond the scope of this python list (and may not be python-related at all), it's too bad a couple of people have taken the time to reply to your queries to simply berate you.