Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Re: Sometimes bottle takes a lot of time Date: Sat, 22 Aug 2015 20:03:04 +0200 Organization: Decebal Computing Lines: 38 Message-ID: <87pp2fmc9z.fsf@Equus.decebal.nl> References: <87si7cnxq6.fsf@Equus.decebal.nl> <87a8tjo8oz.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="14421"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+S5vQBt8ttyH3/zPHVp9MvM6+HxQGth3s=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:1m7BZCg31rV1VQuei+UDDpFJ1qc= sha1:SNUud3GKYTv3LtHOZTXM8vC5oSA= Xref: csiph.com comp.lang.python:95564 On Saturday 22 Aug 2015 17:33 CEST, Michael Torrie wrote: > 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. I should have thought about that myself. :-( I was already thinking about writing debug statements in the routes. By the way does anybody know what the time-stamp is: the moment the requests is received, or the moment the request is finished? I just tried it again. Two almost immediately and then a long one again. What I find very peculiarly is that every-time there is a delay, there are two delays of six seconds. > 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. It could be an AngularJS problem. ;-) -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof