Its a common problem among all Python web frameworks (and lets face
it, Trac really is a Python web framework that happens to ship with a
very project tool as the example app instead of Hello World). Mostly
it is because they use tons of strings, especially during template
rendering. In many places Trac trades pure efficiency for programmer
friendliness. Earlier versions of Trac (before 0.11) used Clearsilver,
a C-based templating system, and were therefore not subject to the
whims of the Python string allocator. It will obviously limit what
features are available, and what 3rd party tools you can use, but
staying at the last 0.10 release might be a solution for the moment.
--Noah