VS 2013 debugging very slow IIS start - c#

When I am working in a project that several of my colleagues work in too I have significantly longer starting time of IIS than the others.
Almost every page in the application takes ages (the first time) but after that it goes smooth. The difference in loading time is like 1-2 seconds for my colleagues and 5-12 seconds for me. My computer is BY FAR the most powerful in terms of internal memory, hard disk speed, CPU speed and more. Almost twice as fast as others, but still I get this problem.
I don't have any other problems with my machine.
We all use: VS 2013, Chrome 35.019, C#
I use: IIS version 8.5, Windows 8.1
Colleagues use: IIS version ?, Windows 7 and Windows 8

Spotify can affect VS and IIS performance on certain hardware. If you have this problem and you are using Spotify, try to turn it off and see if it works better.

Related

Xamarin - Deployment on laptop without hardware acceleration support

I'm using MSVS2015Pro with C#/Xamarin.
I have a laptop that doesn't support Hardware Acceleration.
Then I have a question: can I develop for mobiles without having to spend too much time when deploying?.
I could deploy to my real android phone, but I don't know if that's slower than deploying to an AVD. Is it?
What Can I do? I don't wanna do things in a very slow manner.
Do I have to buy a another laptop that supports Hardware Acceleration?
If that's the case, what other requirements I need for that other laptop?
We are running windows 10 with VS 2015 Pro and no hardware acceleration available on the CPU. There is indeed a solid state drive and 16gig ram (The ram doesn’t really assist in running the emulator though. More ram doesn't make the emulator faster. It is rather the processor and or GPU. The ram does assist with running multiple emulator instances.)
Doing both xamarin.iOS and xamarin.android development. I would agree that with hardware acceleration things would be much faster but it is possible to dev on an enterprise level without it. The deployment to emulator (once emulator has started up and is running) vs actual device is much the same. It is indeed faster running the app on an actual device.
I would suggest using actual device to test functionality and the user experience of the app for quick feedback cycles while using the emulator to test different OS versions for compatibility.

AddFontResource() slow on Win10 Anniversary Update

I'm working with maintenance of .NET 3.5 application. During application startup a number of fonts are read from working directory and registered in Windows. We use a pinvoke calls to AddFontResource(string lpFileName) (Gdi32.dll) for each font file.
The code has always been fast, that is until I upgraded to Win10 Anniversary Update (before that, there were no problems with Win10). Now a call can take half a second, which has increased startup time with 90 seconds.
Any idea what can cause the problem? And how to fix it?
Windows 10 anniversary update destroyed performance of the AddFontResource and RemoveFontResource APIs. We're dealing with fallout from it at PortableApps.com now. It's only an issue on Windows 10 after the anniversary update is applied. It's so bad that my old slow ASUS T100 convertible runs code from a USB drive faster than my i7 desktop does from an internal SSD.
I have also observed this problem, but in our case I found a solution: Call AddFontResourceEx().
The full change in our code was:
// from this
AddFontResource(pFont);
// to this
AddFontResourceEx(pFont, FR_PRIVATE, 0);
This solved the slowness problem in at least one of the machines I've personally tested.

Android Virtual Device Loads Very Slow

I am using a remote desktop having configured Win 8.1, 3gb ram DDR2, 15gb HDD free space, latest Xamarin Studio Starter version with api 21 packages. When I try to debug a simple "Hello World" solution on studio, the manually created AVD loads too slow, even android home screen does not appear after 1 hour. What should I do to speed up the process ?
I don't know if your IDE supports it but you should really try out Genymotion, it changed my development time and testing significantly.
https://www.genymotion.com/
Considering your configuration, 1 hour is too much, try restarting first.
If not go for your Android device(physical), I debug on my mobile(you don't have to wait for your mobile to start).
You Can also go for Genymotion . Many find difficulty in genymotion setup. it is pretty simple though, follow this video If you'll understand once about VirtualBox and IP, it'll be easy for next time
I would recommend 6GB Ram and i5 processor for performance lag problem. So if it is possible, you should upgrade your machine.
Thanks for your responses. Finally I have resolved the issue by creating a low resolution Android Virtual Device (Nexus One) by Xamarin Studio.
But another problem arises, the published apk file is too large.Which steps need to be done to make it perfect ?
You should try the Xamarin Android Player. In my experience it's the fastest option over Genymotion and Android's AVD images even with Intel's HAXM installed.
https://www.xamarin.com/android-player

Memory issues debugging an app : c#

I have an app which is basically exporting DB data to Excel. It was working fine (given the fact that it is playing around with 1 million rows). While debugging the app, I was checking the task manager for memory consumption and the vshost32 exe was using around 4 GB. From some time (yesterday) when I tried to run the same app (with loads of data as before) I ran out of memory. I tried that again and every time when the app tries to use more than a 1.4 GB, it ends up with an exception. I haven't changed any code so I am really wondering where this strange behavior comes from?
I am using 32 bit Visual Studio 2012 on quad core processor with 8 GB of ram and a virtual Windows 8.1 64 bit.

VS 2010 on a flash drive using Vbox portable?

Ive seen :
Can Visual Studio Express run from USB drive?
after seeking if I could run VS 2010 in a flash drive. has someone actually succeeded in trying such?
Where Im being taught only have VS Express ( Im into C# ) and its a real PITA as I also need to use some plugins which become handy.
If someone has succeeded, how much space could VS 2010 ( C#) plus Virtual box possibly need ( guesstimates are fine ofc)?
thx
In general principle, yes, you can run pretty much any app from a VM anywhere. VBox portable, to the best of my knowledge, doesn't cripple the VM concept so as to make that impossible.
You can run Visual Studio within a VM typically without any problems, so you should be able to set up and run this just fine. Might want to check the EULA and see if it has any mention of such a thing, though.
The real issue you will run into is flash drive speeds. VS does a good bit of reading during use, and a VM will only make that worse (by having the virtual HDD on the flash drive). Over USB 2.0, you'll run into some serious slow-down. USB 3 or eSATA may work better, if you can get a fast flash drive/external disk drive to use.
I haven't done that, but I'm using non-portable VirtualBox a lot, which practically never gave me a headache, even with some very complex software installed in the VM.
From that experience, I'd say Windows 7 comes at roughly 7GB, but it might grow a bit over time. A full VS 2010 Ultimate takes up a bit more than 6 GB, so you'll end up at 13.
Of course, you can simply install C# only and leave VB, F#, and C++ out of it, saving you up to 4GB. However, I think you'd still have to go for a 16GB stick, otherwise the hard disk of your VM will appear to be full which leads to a plethora of problems.

Categories

Resources