Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Profiler Proof of Concept #6149

Merged
merged 2 commits into from Jul 18, 2019
Merged

Profiler Proof of Concept #6149

merged 2 commits into from Jul 18, 2019

Conversation

kingces95
Copy link
Contributor

@kingces95 kingces95 commented May 9, 2019

This change will not result in dramatic performance improvements. Instead, it was used to demonstrate the feasibility of building our own Forms specific profiler and using that profiler to both identify a performance issue and verify the issue is fixed by a PR.

I plan to rename some of the items published in this PR (if I can get away with that) when I push the other performance fixes that, taken together, will produce a startup performance improvement worth promoting.

Those fixes are been developed and are now going through our PR process.

Until all the changes have been submitted it's not worth customers flip any of the flags. Please wait until all the flab has been squeezed out and all flags are defined before taking advantage of any of this work.

@samhouts samhouts added this to In Review in v4.1.0 May 10, 2019
@samhouts samhouts added this to In Review in v4.2.0 May 29, 2019
@samhouts samhouts removed this from In Review in v4.1.0 May 29, 2019
@samhouts samhouts requested a review from paymicro June 3, 2019 22:46
Copy link
Contributor

@paymicro paymicro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@samhouts samhouts removed this from In Review in v4.2.0 Jul 4, 2019
@samhouts samhouts added this to In Review in v4.3.0 Jul 8, 2019
@rmarinho
Copy link
Member

Can we have a better description on the PR @kingces95 ?


#if NETSTANDARD2_0
object[] styleAttributes = assembly.GetCustomAttributes(typeof(StyleSheets.StylePropertyAttribute), true);
object[] styleAttributes = assembly.GetCustomAttributes(typeof(StylePropertyAttribute), true);
#else
object[] styleAttributes = assembly.GetCustomAttributes(typeof(StyleSheets.StylePropertyAttribute)).ToArray();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A small detail, after adding the namespace, StyleSheets is no longer necessary here.

object[] styleAttributes = assembly.GetCustomAttributes(typeof(StylePropertyAttribute)).ToArray();

Registered.Register(attribute.HandlerType, attribute.TargetType, attribute.SupportedVisuals);
}
var handlerAttributes = new HandlerAttribute[attributes.Length];
Array.Copy(attributes, handlerAttributes, attributes.Length);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@StephaneDelcroix StephaneDelcroix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see how those changes relate to the title of the PR (or the description), but ¯_(ツ)_/¯

@StephaneDelcroix StephaneDelcroix merged commit 6015aa2 into master Jul 18, 2019
v4.3.0 automation moved this from In Review to Done Jul 18, 2019
@StephaneDelcroix StephaneDelcroix deleted the droid-perf12 branch July 18, 2019 12:43
@kingces95
Copy link
Contributor Author

kingces95 commented Jul 31, 2019

This change will not result in dramatic performance improvements. Instead, it was used to demonstrate the feasibility of building our own Forms specific profiler and using that profiler to both identify a performance issue and verify the issue is fixed by a PR.

I plan to rename some of the items published in this PR (if I can get away with that) when I push the other performance fixes that, taken together, will produce a startup performance improvement worth promoting.

Those fixes are been developed and are now going through our PR process.

samhouts pushed a commit to rookiejava/Xamarin.Forms that referenced this pull request Aug 16, 2019
@rookiejava rookiejava mentioned this pull request Aug 20, 2019
3 tasks
@samhouts samhouts removed this from Done in v4.3.0 Sep 3, 2019
@samhouts samhouts added this to the 4.3.0 milestone Sep 11, 2019
@samhouts samhouts added this to Done in v4.3.0 Sep 11, 2019
felipebaltazar pushed a commit to felipebaltazar/Xamarin.Forms that referenced this pull request Oct 16, 2019
@kingces95 kingces95 changed the title Opt-in init to speed up startup times Profiler Proof of Concept Oct 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
v4.3.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

6 participants