Closed
Bug 127424
Opened 23 years ago
Closed 23 years ago
Remove unneccesary usage of glib calls in gfx/src/ code...
Categories
(Core :: XUL, enhancement, P5)
Tracking
()
RESOLVED
WONTFIX
mozilla0.9.9
People
(Reporter: roland.mainz, Assigned: roland.mainz)
Details
Attachments
(1 file, 1 obsolete file)
|
22.52 KB,
patch
|
db48x
:
review+
attinasi
:
superreview+
|
Details | Diff | Splinter Review |
RFE: Remove unneccesary usage of glib calls in gfx/src/ code...
| Assignee | ||
Updated•23 years ago
|
Severity: normal → enhancement
Status: NEW → ASSIGNED
Priority: -- → P5
Target Milestone: --- → mozilla0.9.9
| Assignee | ||
Comment 1•23 years ago
|
||
Shouldn't that be fputs rather than puts? My man page says puts adds a
newline of its own.
| Assignee | ||
Comment 3•23 years ago
|
||
Attachment #71087 -
Attachment is obsolete: true
Comment 4•23 years ago
|
||
Comment on attachment 71091 [details] [diff] [review]
Better patch for 2002-02-19-08-trunk per tenthumb's comment
r=db48x
Attachment #71091 -
Flags: review+
Comment 5•23 years ago
|
||
Comment on attachment 71091 [details] [diff] [review]
Better patch for 2002-02-19-08-trunk per tenthumb's comment
sr=attinasi
Attachment #71091 -
Flags: superreview+
Comment 6•23 years ago
|
||
Please don't remove the glib code from the gtk rendering context code. There's
no reason to do that and it just screws up cvs blame.
| Assignee | ||
Comment 7•23 years ago
|
||
The code is AFAIK unneccesary. We call glib functions just for fun - or is there
any other reason ? blizzard ?
Comment 8•23 years ago
|
||
and you replace it with equally fun code?
| Assignee | ||
Comment 9•23 years ago
|
||
The code now uses XPCOM macros instead of the glib calls. The glib macros used
here have two disadvantages: They make use of g_log() (function call overhead)
and may be disabled if someone sets |G_DISABLE_CHECKS|.
Both is AFAIK not wanted.
blizzard:
Please explain why we need this "alien" code in the tree ?
Why do you think that is MANDATORY that we have to use glib stuff instead of the
XPCOM macros here ?
Comment 10•23 years ago
|
||
The code isn't "alien." It's in the gtk code. Also, the use of those functions
has been very helpful in the past at finding bugs.
Can you show me a _noticable_ performance improvement as a result of changing
that code?
| Assignee | ||
Comment 11•23 years ago
|
||
Christopher Blizzard wrote:
> The code isn't "alien." It's in the gtk code. Also, the use of those
> functions has been very helpful in the past at finding bugs.
Sure. I am not removing them, I only converted them to XPCOM. They are still
"there" and being usefull.
> Can you show me a _noticable_ performance improvement as a result of changing
> that code?
I did not do meansurements. I am trying to cleanup, that's all. The GTK+
functions cannot be used in Xlib code and I'd to keep both code lines in sync if
possible.
Comment 12•23 years ago
|
||
> Sure. I am not removing them, I only converted them to XPCOM. They are still
> "there" and being usefull.
So you've traded one set of macros for another? Plus, gtk will still log these
errors even in production code, assuming you have a gtk built with the g_log
functions enabled. You're actually removing functionality from this code.
Please don't.
>> Can you show me a _noticable_ performance improvement as a result of changing
>> that code?
>
> I did not do meansurements. I am trying to cleanup, that's all. The GTK+
> functions cannot be used in Xlib code and I'd to keep both code lines in sync if
> possible.
>
That's not enough reason to take this patch for me.
| Assignee | ||
Comment 13•23 years ago
|
||
blizzard wrote:
> That's not enough reason to take this patch for me.
As you wish.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Comment 14•23 years ago
|
||
You can still check in the changes to the Xlib code if you want.
You need to log in
before you can comment on or make changes to this bug.
Description
•