[reportlab-users] registerFont stays how long in memory? what s the best place to register a font?

Henning von Bargen H.vonBargen at t-p.com
Thu Apr 22 03:44:11 EDT 2010


I don't know much about your setup,
but is it the case that your app is running multi-threaded
by the web-server? ReportLab is not thread-safe.

Regarding slow web-app:
That depends on your personal definition of slow.
In a Java Web-App, I call python with reportlab as an
external process, and yes, that's a little bit of
overhead, but only 1 or 2 seconds per call.

Then ReportLab generates a few dozen pages and that output
is transferred to the client via the web, and the client
browser has to start the pdf viewer.
Viewing any pdf in the browser, even staticically served,
usually takes several seconds anyway.

So, depending on your users' expectations, those 1 or 2 seconds
of python process startup overhead are not critical.

Henning


More information about the reportlab-users mailing list