[libGD] #74 [Task opened] imagefilledarc can take a lot of CPU

[email protected] (libGD)
Newsgroups php.gd.bugs
Message-ID <[email protected]>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below.

User who did this - Raphaël MELIOR (RaphAstronome)

Attached to Project - libGD
Summary - imagefilledarc can take a lot of CPU
Task Type - Bug Report
Category - Drawing function
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - High
Priority - Normal
Reported Version - 2.0.34
Due in Version - Undecided
Due Date - Undecided
Details - imagearc and imagefilledarc can use a very important amount of CPU if start and end angles is very higher than 360°.

Examples :
<code>imagefilledarc($image, 50, 50, 100, 50, 0, 2147483647, $navy, IMG_ARC_PIE);</code>
- or -
<code>imagearc($image, 50, 50, 100, 50, 0, 2147483647, $navy);</code>
(It can exceed 30 seconds execution time)

A think end-start don't need to be so large.

For imagefilledarc :
His problem is more important if style = IMG_ARC_EDGED or IMG_ARC_PIE but it exists on IMG_ARC_NOFILL and IMG_ARC_CHORD.

More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=74

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above..
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.