[Mono-bugs] [Bug 555596] New: properties on structs possibly not being inlined
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Nov 14 22:31:31 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=555596
Summary: properties on structs possibly not being inlined
Classification: Mono
Product: MonoTouch
Version: unspecified
Platform: Macintosh
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Runtime
AssignedTo: gnorton at novell.com
ReportedBy: matt.e.greer at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
--- Comment #0 from Matt Greer <matt.e.greer at gmail.com> 2009-11-15 03:31:22 UTC ---
Created an attachment (id=327570)
small benchmark showing diff between PointF and equivalent struct
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.0.15) Gecko/2009101600 Firefox/3.0.15
I wrote a tiny, non-scientific benchmark that suggests the X and Y properties
on System.Drawing.PointF might not be inlined. I am getting worse performance
with PointF than I am doing the same calculations with a struct that has public
x and y fields.
Reproducible: Always
Steps to Reproduce:
1. Run the attached code on a phone or the simulator
It will report back that the Vector2F struct has better performance than
PointF.
I talked with Geoff Norton in #monotouch and he thought it's possibly a bug
with the inliner, and asked me to file this.
Actual Results:
Vertex2F gets roughly 2x better performance than PointF when accessing X and Y
often.
Expected Results:
They should be about the same.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list