I was just wondering if someone had any idea about what would cause tcpdf
output to be very slow on a specific server. My local server is a MacPro 8
cores with plenty of everything (but also used by plenty of soft), generating
a tcpdf (invoice) takes about 2-3 seconds. My production server is a VPS with
just me using it, a dual core, Ubuntu 10.04, php5.3.2 (same as local but with
Suhosin Patch 0.9.9.1), 1gb of RAM .... takes 51 second to generate that same
invoice !
When trying examples, some are ok (speed wise) like #61, some almost do
timeout like #1 even though I did update the max_execution_time to 60 sec and
the max ram to 128MB, #2 is ok, #3 is ok, #55 takes almost 10 sec, ...
It really feels like it's a server setting because my prod server is usually
fast (and we have at most 3 users on it, it's production but only for us, I'm
alone right now) so if you have an idea about a specific setting that could
cause that kind of slowness, I'd appreciate anybody's input.
Pierre.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Try to disable the font subsetting, and set to false K_THAI_TOPCHARS constant
if you are not using thai language.
Install XCache for boosting php applications.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The K_THAI_TOPCHARS did drop the time by 3 seconds but the
$pdf->setFontSubsetting(FALSE); really did it ... from 51 seconds to 2 seconds
max !!!!
Really surprising. I'm wondering why this ???
I didn't try the Xcache but you might also be right with this one, I think my
local server has Xcache and/or Eccelerator (I don't remember the exact
spelling) ... Xcahe might allow me to turn Fontsubsetting back on, but as I do
not need it ... I'm a happy camper !
As I already used your brain twice, I will donate (beginning july) to thank
you for this !
P.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I was just wondering if someone had any idea about what would cause tcpdf
output to be very slow on a specific server. My local server is a MacPro 8
cores with plenty of everything (but also used by plenty of soft), generating
a tcpdf (invoice) takes about 2-3 seconds. My production server is a VPS with
just me using it, a dual core, Ubuntu 10.04, php5.3.2 (same as local but with
Suhosin Patch 0.9.9.1), 1gb of RAM .... takes 51 second to generate that same
invoice !
When trying examples, some are ok (speed wise) like #61, some almost do
timeout like #1 even though I did update the max_execution_time to 60 sec and
the max ram to 128MB, #2 is ok, #3 is ok, #55 takes almost 10 sec, ...
It really feels like it's a server setting because my prod server is usually
fast (and we have at most 3 users on it, it's production but only for us, I'm
alone right now) so if you have an idea about a specific setting that could
cause that kind of slowness, I'd appreciate anybody's input.
Pierre.
Hello
Forgot to mention I am using Version 5.4.000 .
P.
Try to disable the font subsetting, and set to false K_THAI_TOPCHARS constant
if you are not using thai language.
Install XCache for boosting php applications.
Wooow !
The K_THAI_TOPCHARS did drop the time by 3 seconds but the
$pdf->setFontSubsetting(FALSE); really did it ... from 51 seconds to 2 seconds
max !!!!
Really surprising. I'm wondering why this ???
I didn't try the Xcache but you might also be right with this one, I think my
local server has Xcache and/or Eccelerator (I don't remember the exact
spelling) ... Xcahe might allow me to turn Fontsubsetting back on, but as I do
not need it ... I'm a happy camper !
As I already used your brain twice, I will donate (beginning july) to thank
you for this !
P.
Since TCPDF 5.9.067 the performances were significantly improved (including
when using font subsetting). Please upgrade.