Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2362 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

Beaker + snow leopard + i18n causes a huge performance degradation.

Reported by: jorge.vargas Owned by:
Priority: highest Milestone:
Component: TurboGears Version: 2.0
Severity: critical Keywords:


This started with  http://pastie.textmate.org/private/cmd9ovtitiwg5rffzbdxha -- an attempt to benchmark "out of the box" performance for various frameworks.

 http://imagebin.ca/view/5NHhda.html shows a massive performance problem in a freshly quickstarted application with the simplest possible index method. Obvious responses are obvious.

mpedersen: Well, for me, I just ran it the same way, and got 256r/s (linux)
percious_: im running 2.1 here, and it's giving me 300 r/sec (mac os 10.5)

<then we clued in that it was the file system>

12:55:31 PM elpargo: i18n.set_lang is called on each "call" :)
12:55:56 PM mpedersen: and set_lang does a session.save()

<mcdonc stepped up with a macos 10.6 machine>

mcdonc: if i further put a return statement at the top of setup_i18n, i get about 320 rps
mcdonc: if this is a hello world request, each request is taking about 1749 function calls to get the work done

Full chat log here  http://irclog.turbogears.org/archive/freenode/turbogears/2009/09/14

Change History

comment:1 Changed 10 years ago by jorge.vargas

  • Priority changed from normal to highest
  • Version changed from 2.0b7 to 2.0
  • Severity changed from normal to critical

comment:2 Changed 10 years ago by jorge.vargas

Just to be clear this is a bug in how i18n works.

comment:3 Changed 10 years ago by jorge.vargas

  • Status changed from new to closed
  • Resolution set to fixed

This turned out to be a bug in python itself, which was fixed in beaker and released.

Note: See TracTickets for help on using tickets.