Parameters on function declaration causes VS to slow down
8 posts
• Page 1 of 1
Parameters on function declaration causes VS to slow down
Hi, I've noticed on various classes's functions declaration that when the signature has more then 15 parameters, VS starts to slow down and block me for typing characters for about 10 seconds. After this wait I start again to writing, but on the next parameter declaration VS slows down again.
This an example, excuse me if some parameters are in italian.
Try to add another parameter or to use them inside the function. I don't think that is a pc's performance problem, I've a Dell with Xeon cpu and 32gb of ram.
Could you please help me? Thanks.
This an example, excuse me if some parameters are in italian.
- Code: Select all
public function __construct($inId, $inIsDeleted, $inDtCreate, $inUserIdCreate, $inDtUpdate, $inUserIdUpdate, $inCodDip, $inCidOriginale, $inNome, $inCognome, $inCodiceFiscale, $inCodArea1, $inDesArea1, $inCodArea2, $inDesArea2, $inCodArea3, $inDesArea3, $inEmailAzienda, $inDataNascita, $inDataAssunzione)
{
}
Try to add another parameter or to use them inside the function. I don't think that is a pc's performance problem, I've a Dell with Xeon cpu and 32gb of ram.
Could you please help me? Thanks.
- gmolinari
- Posts: 5
- Joined: July 19th, 2016, 8:01 am
Re: Parameters on function declaration causes VS to slow dow
Hi,
Thanks for the feedback.
We've tried your test case, even with 100 parameters, and we couldn't make it slower.
Is it possible, there are other 3rd party extensions slowing your VS down?
Thanks,
Jakub
Thanks for the feedback.
We've tried your test case, even with 100 parameters, and we couldn't make it slower.
Is it possible, there are other 3rd party extensions slowing your VS down?
Thanks,
Jakub
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Parameters on function declaration causes VS to slow dow
Hi,
thanks for your answer. My VS2015 has this plugins installed:
There are known issues with one or more of these plugins/components?
thanks for your answer. My VS2015 has this plugins installed:
- Code: Select all
Microsoft Visual Studio Professional 2015
Version 14.0.25422.01 Update 3
Microsoft .NET Framework
Version 4.6.01038
Installed Version: Professional
LightSwitch for Visual Studio 2015 00322-50050-15724-AA617
Microsoft LightSwitch for Visual Studio 2015
Microsoft Visual Studio Tools for Applications 2015 00322-50050-15724-AA617
Microsoft Visual Studio Tools for Applications 2015
Visual Basic 2015 00322-50050-15724-AA617
Microsoft Visual Basic 2015
Visual C# 2015 00322-50050-15724-AA617
Microsoft Visual C# 2015
Visual C++ 2015 00322-50050-15724-AA617
Microsoft Visual C++ 2015
Visual F# 2015 00322-50050-15724-AA617
Microsoft Visual F# 2015
Windows Phone SDK 8.0 - ENU 00322-50050-15724-AA617
Windows Phone SDK 8.0 - ENU
ASP.NET and Web Tools 2015.1 14.1.20624.0
ASP.NET and Web Tools 2015.1
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
For additional information, visit http://www.asp.net/
Azure App Service Tools v2.9 14.0.20316.0
Azure App Service Tools v2.9
Azure Data Lake Node 1.0
This package contains the Data Lake integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio 2.0.6000.0
Microsoft Azure Data Lake Tools for Visual Studio
Clang with Microsoft CodeGen 14.0.25317
Clang with Microsoft CodeGen
Common Azure Tools 1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
GitHub.VisualStudio 1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
JustDecompile Tools 1.0
Makes JustDecompile functionality available in VIsual Studio. Requires JustDecompile installation.
KofePackagePackage Extension 1.0
KofePackagePackage Visual Studio Extension Detailed Info
Microsoft .NET Core Tools (Preview 2) 14.1.20624.0
Microsoft .NET Core Tools (Preview 2)
Microsoft Azure HDInsight HQL Service 2.0.6000.0
Language service for Hive query
Microsoft Azure HDInsight Tools for Visual Studio 2.0.6000.0
An integrated development environment for HDInsight application development.
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.9.40323.3
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
NuGet Package Manager 3.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Office Developer Tools for Visual Studio 2015 ENU 14.0.23928
Microsoft Office Developer Tools for Visual Studio 2015 ENU
PHP Tools for Visual Studio 1.19.8851.2015
PHP Tools extend Visual Studio with a set of features to build PHP applications more efficiently. It makes code more readable, easier to navigate, and clean.
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
Python Tools for Visual Studio 2.2.40623.00
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.
Python Tools for Visual Studio - Django Integration 2.2.40623.00
Provides templates and integration for the Django web framework.
Python Tools for Visual Studio - Profiling Support 2.2.40623.00
Profiling support for Python projects.
SQL Server Analysis Services 13.0.1601.5
Microsoft SQL Server Analysis Services Designer
Version 13.0.1601.5
SQL Server Data Tools 14.0.60525.0
Microsoft SQL Server Data Tools
SQL Server Integration Services
Microsoft SQL Server Integration Services Designer
Version 13.0.1601.5
SQL Server Reporting Services 13.0.1601.5
Microsoft SQL Server Reporting Services Designers
Version 13.0.1601.5
Telerik DataAccess VSExtensions 2016.1.111.0
Telerik DataAccess VSExtensions
Telerik WinForms Converter 2016.2.603.0
Telerik UI for WinForms Converter VSExtensions
Telerik WinForms VSExtensions 2016.2.712.0
Telerik UI for WinForms VSExtensions
ToolWindowHostedEditor 1.0
Hosting json editor into a tool window
TypeScript 1.8.35.0
TypeScript tools for Visual Studio
Visual C++ for Cross Platform Mobile Development (Android) 14.0.25401.00
Visual C++ for Cross Platform Mobile Development (Android)
Visual C++ for Cross Platform Mobile Development (iOS) 14.0.25401.00
Visual C++ for Cross Platform Mobile Development (iOS)
Visual Commander 2.4
For more information about Visual Commander, see the website at https://vlasovstudio.com/visual-commander/.
Copyright (c) 2013-2015 Vlasov Studio.
Visual Studio Tools for Apache Cordova Update 10
Visual Studio Tools for Apache Cordova
Visual Studio Tools for Universal Windows Apps 14.0.25420.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.
Xamarin 4.1.0.530 (2e39740)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android 6.1.0.71 (4e27558)
Visual Studio extension to enable development for Xamarin.Android.
Xamarin.iOS 9.8.0.323 (39ebb77)
Visual Studio extension to enable development for Xamarin.iOS.
There are known issues with one or more of these plugins/components?
- gmolinari
- Posts: 5
- Joined: July 19th, 2016, 8:01 am
Re: Parameters on function declaration causes VS to slow dow
Hi,
We still can't find out, what other extension can cause this.
How many lines does that php file have ?
Thanks,
Jakub
We still can't find out, what other extension can cause this.
How many lines does that php file have ?
Thanks,
Jakub
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Parameters on function declaration causes VS to slow dow
Hi Jakub,
I'm attaching the "incriminated" file (I'd to change extension from php to txt due to file upload policies). Try to add another parameter in the constructor.
Thanks
Regards,
Giulio
I'm attaching the "incriminated" file (I'd to change extension from php to txt due to file upload policies). Try to add another parameter in the constructor.
Thanks
Regards,
Giulio
You do not have the required permissions to view the files attached to this post.
- gmolinari
- Posts: 5
- Joined: July 19th, 2016, 8:01 am
Re: Parameters on function declaration causes VS to slow dow
Thanks Giulio!
We've found it and fixed it.
It will be available within the next update.
Thanks,
Jakub
We've found it and fixed it.
It will be available within the next update.
Thanks,
Jakub
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Parameters on function declaration causes VS to slow dow
Very happy to hear that! I'm looking for the new release then.
Thanks for your attention.
Best,
Giulio
Thanks for your attention.
Best,
Giulio
- gmolinari
- Posts: 5
- Joined: July 19th, 2016, 8:01 am
Re: Parameters array context helper, or other experience
O use YII and is there a way where a param context helper could help in suggestion key value pairs?
I admit lot of PHP API like mailchimp or Mollie Ideal does let method config by passing in an $aryParams with key value pairs.
Example
http://pastebin.com/gbdRwTXE
IN the example you see the key name is
'timestamp' =>
and other keys are 'class'
and attributes
could this be generated as a class with static constants or?
or better a php helper could analyse the context of this arryParams ?
I admit lot of PHP API like mailchimp or Mollie Ideal does let method config by passing in an $aryParams with key value pairs.
Example
http://pastebin.com/gbdRwTXE
IN the example you see the key name is
'timestamp' =>
and other keys are 'class'
and attributes
could this be generated as a class with static constants or?
or better a php helper could analyse the context of this arryParams ?
- JeanVanDender
- Posts: 3
- Joined: June 19th, 2016, 7:36 pm
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 108 guests