[cairo-bugs] [Bug 37836] New: Unneeded invocations of memcpy()
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jun 1 14:37:56 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=37836
Summary: Unneeded invocations of memcpy()
Product: cairo
Version: 1.10.3
Platform: x86 (IA32)
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: cworth at cworth.org
ReportedBy: fdt0317.20.swsnyder at spamgourmet.com
QAContact: cairo-bugs at cairographics.org
Created an attachment (id=47444)
--> (https://bugs.freedesktop.org/attachment.cgi?id=47444)
Skip zero-byte-length call to memcpy()
In function _cairo_path_fixed_add() (file cairo-path-fixed.c, as pulled from
the Thunderbird 5.0 Beta1 source) memcpy() is frequently invoked to copy zero
bytes.
My observation with TB 5.0b1 is that in 16% of the calls a byte length of zero
is specified. Further, the code as built by Mozilla using VS2005/VS2008 is
generated as functions, not as inline intrinsics.
Not a huge burden, but why incur the cost of these pointless calls to memcpy()
if we don't have to?
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the cairo-bugs
mailing list