News for hackers. Stuff that matters.
Re:C# Pattern Matching by qwerty456127 on Tuesday February 04, 2020 @05:53PM (#22241991)
> replacement for visual studio but faster

How can a IntelliJ Idea derivative written in Java be faster than VistalStudio which is native code? Both Idea and PyCharm work much slower than VisualStudio on my machine.

Re:C# Pattern Matching by GordonS on Tuesday February 04, 2020 @06:38PM (#22242360)
At least for me, Rider is definitely faster than Visual Studio, both in startup time (easily human-measurable) and operation (also easily human measurable, by lack of intermittent hangups and laptop fans constantly whining).

I'd also say that Rider is more stable - I've only ever seen issues with preview versions; the production versions are solid, which can't be said for Visual Studio.

I was a Visual Studio fanboi for many years before discovering Rider, so wouldn't be easily swayed - please, try it and see for yourself!

Re:C# Pattern Matching by eberkund on Tuesday February 04, 2020 @05:55PM (#22242019)
Because VS has limitations on the amount of memory it can use and although they have been working on this, there is still functionality which is highly single threaded whereas Rider tends to offload most of the functionality from the UI thread into background processes.
Re:C# Pattern Matching by eyegor on Tuesday February 04, 2020 @07:44PM (#22242887)
The memory limitations can be partially kicked down the road by setting /largeaddressaware on devenv.exe. Ofc it's still beyond frustrating when you have a large solution with many component projects. I personally ram against the 4gb ceiling constantly.
Re:C# Pattern Matching by qwerty456127 on Wednesday February 05, 2020 @03:42PM (#22250774)
I see, this means Rider is faster than the VS on many-core machines with huge amounts of memory. That's why it isn't going to be fast for me - I only use laptops, with 4 GiB RAM and dual cores each.
Re:C# Pattern Matching by fuzzy2 on Tuesday February 04, 2020 @06:09PM (#22242142)
Visual Studio isn't native though. It's .NET and COM. That's also why we're still stuck with 32-bit VS.
Re:C# Pattern Matching by hermitdev on Tuesday February 04, 2020 @07:55PM (#22242967)
That's not why VS is still 32-bit. Apparently folks at MS dont think the extra address space isnt worth it and think it would adversely affect performance [1].

In my own experience in migrating servers from 32 to 64-bit on Linux 12 years ago, 64-bit was around 10-20% slower than the 32-bit build. Dont how itd fare today (no longer at that job). Even though performance was demonstrably slower, 64-bit it was due to edict from the CEO.

For what its worth, neither of the services I was responsible benefited from the extra address space. Mem usage for bother services peaked at around 750 MB.

[1] https://docs.microsoft.com/en-us/archive/blogs/ricom/revisit...

Re:C# Pattern Matching by ygra on Wednesday February 05, 2020 @04:23AM (#22245264)
Rico has a point to a degree and every VS version since then reduced memory footprint and improved performance (mostly due to not calculating stuff up-front which may never be needed and doing it on demand).

Microsoft has also pushed since VS 2008 (!) for plug-ins and extensions to use an out-of-process model. I think ReSharper got the message in summer 2019 that it might be a good idea – and incidentally, a lot of their performance comparison of Rider vs. VS comes down to "Rider uses ReSharper in another process, so the IDE doesn't slow down when ReSharper does things", while they themselves still pursued the slower model in VS. Heck, until a few releases ago ReSharper was still using the old synchronous COM APIs for querying the solution after loading, leading to severe pauses when opening a solution or re-loading it after switching source control states.

Vanilla VS is plenty fast and not that memory-hungry. In my experience it's extensions that try to sync with IDE state where a lot of the waiting comes in and in-process extensions where a lot of the memory usage comes from.

Re:C# Pattern Matching by pjmlp on Wednesday February 05, 2020 @07:04AM (#22246018)
Out of process model is actually much better idea, given the instability and possible exploits of in-proces plugins.

I also never liked ReSharper, the performance drop versus vanilla VS isn't worth it.

Re:C# Pattern Matching by int_19h on Tuesday February 04, 2020 @06:25PM (#22242281)
COM is an ABI, and is often implemented in native code, C++ usually. There's still plenty of C++ inside VS.
Re:C# Pattern Matching by Ididntdothis on Tuesday February 04, 2020 @07:53PM (#22242957)
Visual Studio is written in WPF which is not exactly a speed demon.
Re:C# Pattern Matching by pjmlp on Wednesday February 05, 2020 @07:04AM (#22246024)
Still way faster than Swing.
Re:C# Pattern Matching by yread on Wednesday February 05, 2020 @03:00AM (#22244850)
I haven't used rider but VS can spin up some Nodejs processes if you work with js and they are an abomination
Re:C# Pattern Matching by emodendroket on Friday February 07, 2020 @03:39PM (#22270651)
A faster algorithm matters more than the choice of programming language, as algorithm textbook authors love to remind you.
Re:C# Pattern Matching by jen20 on Tuesday February 04, 2020 @08:02PM (#22243006)
Visual Studio has been unable to keep up with my (not notably fast) typing since like 2005. Rider has no issue. Nor does IntelliJ or CLion or Goland.
Re:C# Pattern Matching by michalstanko on Wednesday February 05, 2020 @02:41AM (#22244790)
I worked in Visual Studio full-time for many years, now I'm coding in PhpStorm (IntelliJ IDEA) since July 2019, and while overall it's really powerful, I still kind of miss VS. One notable problem I have with PhpStorm is that oftentimes when I'm trying to find files or text in files, I press the respective keyboard shortcut and start typing immediately, in WebStorm the first few letters often end up being typed into the currently opened file instead of the "Find..." dialog, which never happened to me in VS. A minor issue, but it occurs every single day.

A similar thing makes me go nuts in Windows as well - in Windows 7 I pressed the WinKey and started typing immediately to find an application, never had a problem, but Windows 10 often misses the first few keystrokes after the Start menu opens. I can't believe this hasn't been fixed for years.

--

EDIT: fixed a typo

Re:C# Pattern Matching by throwaway8941 on Wednesday February 05, 2020 @03:15AM (#22244916)
Windows 10 start menu is so bad I cut it out from every Windows machine I have any authority over. Try Keypirinha, it's very snappy and supports fuzzy search.

https://keypirinha.com/

Re:C# Pattern Matching by qwerty456127 on Thursday February 06, 2020 @01:11PM (#22258507)
Why is it bad? It lists installed apps alphabetically, almost the same way all the previous Windows versions did and it has a search field to find an app quickly (AFAIK it can also search through other things but I always disable indexing and integrated web search functionality). How often do you even have to use it? I've just pinned everything I use regularly to the task bar and only use the start menu on rare occasions.
Re:C# Pattern Matching by LandR on Tuesday February 04, 2020 @09:42PM (#22243528)
Rider is miles faster than visual studio for me!
Re:C# Pattern Matching by qwerty456127 on Wednesday February 05, 2020 @03:47PM (#22250829)
That probably is because you have more than 4 GiBs of RAM and/or more than 2 CPU cores.