On Mon, Oct 27, 2008 at 8:04 PM, hemant <[EMAIL PROTECTED]> wrote: > On Mon, Oct 27, 2008 at 10:49 AM, Aaron Turner <[EMAIL PROTECTED]> wrote: >> I have a RoR application which I'm using Prawn via BackgrounDRb to >> generate PDF's. I've determined there seems to be a 5-6x performance >> hit compared to running Prawn directly as a script from the command >> line (~12sec to 60+sec) on my OS X system. >> >> Anyone have any suggestions on how to improve performance? > > Hi Aaron, > > 1. How are you benchmarking this? > 2. Are you using thread pool? > 3. If you do not need large thread pool, you can reduce size using > "thread_pool 1", which will give some boost in performance because > having 20 threads active inside interpretor is a performance penalty. >
I tried the thread_pool thing, it helped a little, but backgroundrb is still multiple times slower then running the same code from a ruby script. Anyways, I created a standalone rails app which showcases this problem: http://synfin.net/code/prawn_demo.tar.gz I put some info in the README, but if you have any further questions let me know. -- Aaron Turner http://synfin.net/ http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin _______________________________________________ Backgroundrb-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/backgroundrb-devel
