Issue 100951 - performance: avoid expensive clipping call
Summary: performance: avoid expensive clipping call
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: OOO310m9
Hardware: All Unix, all
: P3 Trivial (vote)
Target Milestone: OOo 3.1
Assignee: Armin Le Grand
QA Contact: issues@gsl
URL:
Keywords: performance
Depends on:
Blocks: 100851
  Show dependency tree
 
Reported: 2009-04-08 12:53 UTC by hdu@apache.org
Modified: 2009-06-22 14:39 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description hdu@apache.org 2009-04-08 12:53:50 UTC
Issue 100851 showed that the the call to basegfx::tools::clipPolygonOnRange() is especially expensive 
after the polygon has been subdivided into a non-bezier polygon, because there the number of points is 
significantly larger than in its bezier counterpart. The clipping has to be done on the non-bezier polygon, 
because the method clipPolygonOnRange() does not support bezier clipping yet.

Since the extents of the polygon are already known though using it for a simple test can avoid a lot of unnecessary clipping requests.
Comment 1 hdu@apache.org 2009-04-08 12:58:09 UTC
Done in CWS vcl101.
Comment 2 hdu@apache.org 2009-04-14 14:17:21 UTC
Also done in CWS aw070.
Comment 3 Armin Le Grand 2009-04-14 16:08:25 UTC
AW: Need to review code.
Comment 4 Armin Le Grand 2009-04-15 11:59:05 UTC
AW: Checked diff, okay.
Comment 5 Armin Le Grand 2009-06-22 14:39:50 UTC
AW: Closing.