microsoft / XamlBehaviors

This is the official home for UWP XAML Behaviors on GitHub.
MIT License
697 stars 112 forks source link

Is there any way to speed up loading Microsoft.xaml.Behaviors.dll? #197

Closed GordonIreland closed 3 years ago

GordonIreland commented 3 years ago

I am finding that it takes around 10 seconds to load this DLL - longer than loading all of my other 50 DLLs combined. this is on a quad core PC with 32GB RAM.

I have tried using WIX to install the application in the production environmenmt, and NGEN'ing all DLLs but it makes little if any difference

Any hints or tips on speeding this up would be appreciated

pedrolamas commented 3 years ago

Can you explain how you got to the pinpoint the issue to that specific assembly? Also, can you tell me if this was on a debug or release build?

GordonIreland commented 3 years ago

It happens in release and debug mode.

I noticed this assembly always took around d10 seconds to load in the VS output window.

I tried removing the next assembly to load from the solution which was one of my projects), but it made no difference

I have made sure there are no exceptions raised when the solution loads

In the production environment it takes the same 20 seconds to load all 53 assemblies as it does on my development PC. On my development PC it takes 10 seconds out of the 20 seconds to load this single assembly.

I am measurting the time from when it says symbols loaded to when the next assembly says its symbols are loaded

Gordon From: Pedro Lamas notifications@github.com Sent: 15 September 2020 18:00 To: microsoft/XamlBehaviors XamlBehaviors@noreply.github.com Cc: Gordon Ireland gordon.ireland@gi-computersolutions.com; Author author@noreply.github.com Subject: Re: [microsoft/XamlBehaviors] Is there any way to speed up loading Microsoft.xaml.Behaviors.dll? (#197)

Can you explain how you got to the pinpoint the issue to that specific assembly? Also, can you tell me if this was on a debug or release build? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/XamlBehaviors/issues/197#issuecomment-692846023 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOMXTD55NW7DBB7PY4Q54DSF6MSFANCNFSM4Q6HVNUA . https://github.com/notifications/beacon/AEOMXTCUSJ22SL2N7HSQVJ3SF6MSFA5CNFSM4Q6HVNUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFFF73RY.gif

GordonIreland commented 3 years ago

On site I have tried NGEN and installing in GAC vioa a Wix Installer, but it makes very little difference if any

From: Pedro Lamas notifications@github.com Sent: 15 September 2020 18:00 To: microsoft/XamlBehaviors XamlBehaviors@noreply.github.com Cc: Gordon Ireland gordon.ireland@gi-computersolutions.com; Author author@noreply.github.com Subject: Re: [microsoft/XamlBehaviors] Is there any way to speed up loading Microsoft.xaml.Behaviors.dll? (#197)

Can you explain how you got to the pinpoint the issue to that specific assembly? Also, can you tell me if this was on a debug or release build? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/XamlBehaviors/issues/197#issuecomment-692846023 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOMXTD55NW7DBB7PY4Q54DSF6MSFANCNFSM4Q6HVNUA . https://github.com/notifications/beacon/AEOMXTCUSJ22SL2N7HSQVJ3SF6MSFA5CNFSM4Q6HVNUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFFF73RY.gif

pedrolamas commented 3 years ago

GAC plays no role in UWP... this is a UWP app we are talking here, correct? I ask this as this is the UWP Xaml Behaviors, not the WPF one (that's a different repository!)

pedrolamas commented 3 years ago

Now that I look at the assembly you pointed out, I see that the issue is for the XamlBehaviors for WPF, not this project!

Please open this issue on the correct repo, closing it as it is unrelated to this repo.

GordonIreland commented 3 years ago

This a WPF application. Definitely not UWP

The DLL is installed as a Nuget package :

It was recommended to me by Infragistics support team

From: Pedro Lamas notifications@github.com Sent: 16 September 2020 10:01 To: microsoft/XamlBehaviors XamlBehaviors@noreply.github.com Cc: Gordon Ireland gordon.ireland@gi-computersolutions.com; Author author@noreply.github.com Subject: Re: [microsoft/XamlBehaviors] Is there any way to speed up loading Microsoft.xaml.Behaviors.dll? (#197)

GAC plays no role in UWP... this is a UWP app we are talking here, correct? I ask this as this is the UWP Xaml Behaviors, not the WPF one (that's a different repository!) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/XamlBehaviors/issues/197#issuecomment-693273611 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOMXTAYZG2OEAVJIAIHYK3SGB5DVANCNFSM4Q6HVNUA . https://github.com/notifications/beacon/AEOMXTCPWRDB3VXYJDGBCJTSGB5DVA5CNFSM4Q6HVNUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFFJIICY.gif

pedrolamas commented 3 years ago

This repo is for the UWP Xaml Behaviors, the assembly you are referring to is from the WPF Xaml Behaviors; please re-open the issue here: https://github.com/microsoft/XamlBehaviorsWpf