Bug 62389 - performance analysis for printing a lot of glyphs
Summary: performance analysis for printing a lot of glyphs
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: gnome-print
Version: phoebe
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Owen Taylor
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-03-31 00:43 UTC by Akira TAGOH
Modified: 2015-01-07 23:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-02-07 10:29:51 UTC
Embargoed:


Attachments (Terms of Use)
fix patch is here (13.86 KB, patch)
2002-03-31 00:44 UTC, Akira TAGOH
no flags Details | Diff

Description Akira TAGOH 2002-03-31 00:43:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020314

Description of problem:
I tried printing of the following file:
http://junk.brisbane.redhat.com/gb18030/double3.txt

that file was needed about 3 hours for outputting PS on my machine. it's
unbelievable! and PS file which is actually output can't be shown with gs
because gnome-print has a bug.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.get double3.txt
2.run gedit with LANG=zh_CN.gb18030
3.read it and printing
	

Actual Results:  for printing, it needs a lot times.

Expected Results:  gb18030's font is too big. so I think that about 2 or 3
minutes would be better.

Additional info:

Comment 1 Akira TAGOH 2002-03-31 00:44:29 UTC
Created attachment 51484 [details]
fix patch is here

Comment 2 Akira TAGOH 2002-03-31 00:54:48 UTC
the above patch saved a lot of times. actually it finished printing that file in
about 2 or 3 minutes on my machine. it's reasonable, I think. it also contains
gnome-print's bug fix.

-
if (dx == 0 && dy == 0) return NULL;
+
if (dx == 0 && dy == 0) retval = g_strdup ("");

this code should not return NULL. (null) was output by this into PS file. I will
file this bug and patch to bugzilla.gnome.org too.

Comment 3 Havoc Pennington 2002-03-31 20:36:59 UTC
Tagoh you're our gnome-print expert so I'll trust your patch is correct.

Can you rebuild gnome-print? I'm going to be gone this week for guadec.

Comment 4 Akira TAGOH 2002-04-01 10:49:16 UTC
ok, I have built gnome-print with this patch. this problem will be fixed in
0.35-4. Thanks.

Comment 5 Akira TAGOH 2003-01-20 07:38:16 UTC
the improvement of printing performance patch was missed in 0.37 - that patch
has been merged in 1.x series though. so we have this problem again in recent beta.
I submitted a patch again to the upstream bugzilla. see
http://bugzilla.gnome.org/show_bug.cgi?id=77182.

Comment 6 Akira TAGOH 2003-01-29 00:55:26 UTC
the upstream marked it as WONTFIX, because they don't plan to release the 0.x
series anymore. but it's apparently affected our products.
This patch was applied to our old release, and it has been merged to the GNOME
2.x releases. so can you apply it to our gnome-print?

Comment 7 Owen Taylor 2003-02-06 17:00:38 UTC
I'm going to be away for the next few days, but if you (or someone
else) want to apply the patch to our gnome-print RPM, I'm OK with
that.

[ Irrelevant comment -- I think the code would be a whole lot clearer
  and also more efficient if was using a GString as a buffer.
 
  I'm *not* suggesting you change this for our RPM. ]

Comment 8 Akira TAGOH 2003-02-07 10:29:51 UTC
I don't have enough time to improve it until last public beta.
original patch was applied. this problem should be fixed in 0.37-4.


Comment 9 Owen Taylor 2003-02-08 11:48:33 UTC
The original patch is fine, thanks.



Note You need to log in before you can comment on or make changes to this bug.