Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of Writing High-Performance .NET Code

    Writing High-Performance .NET Code

    Ben Watson · 2014

    Software EngineeringSystems & OSProgramming
    Open LibraryAmazon
    Stats for nerds
    3recommend
    3mentions
    3people
    2017–2021years
    100% recommend

    Mentions per year

    20172018201920202021

    What Hacker News says

    1. harshdeepDec 2021
      Writing High Performance .Net Code by Ben Watson
      thread
    2. TideAdNov 2021
      Writing High Performance .NET Code (https://www.writinghighperf.net/) has a chapter on this. In C#, time spent collecting depends on the number of still-living objects. That means you want objects you allocate to be short-lived (dead by the time GC happens) or to live forever (they go to the gen 2 heap and stay there). The book suggests object pooling when the lifetime of objects is between those two extremes, or when objects are big enough for the Large Object Heap.

      But at the end of the section, the book says:

        I do not usually run to pooling as a default solution. As a general-purpose mechanism, it is clunky and error-prone. However, you may find that your application will benefit from pooling of just a few types.
      
      What kind of things do you pool in Unity?
      thread
    3. tjalfiFeb 2017
      I've been using C# and .NET for about 18 months. Here are some of the books and other materials that I have found helpful.

      Framework Design Guidelines - how to design libraries that anyone from Jon Skeet to Mort can use successfully. The focus is on library design but I have found it valuable for day to day coding.

      Effective C# - how to implement the usual idioms properly.

      CLR via C# - this is a dry read but has answers to many questions I would have never thought to ask.

      C# in Depth - excellent coverage of language features from C#1 to C#5.

      Writing High Performance .NET Code - the title says it all

      Pluralsight courses:

      https://app.pluralsight.com/library/courses/csharp-applying-... - excellent coverage of the functional core/imperative shell approach to program design. If you know Haskell you can probably skip this.

      https://app.pluralsight.com/library/courses/csharp-design-st... - Jon Skeet implements the GoF patterns.

      Visual Studio addins:

      ReSharper - the diagnostics are quite valuable

      SpecFlow - support for the Gherkin DSL for BDD testing.

      Tools:

      PerfView

      thread

    Related

    Cover of C# in Depth
    2009–2025

    C# in Depth

    Jon Skeet
    29 recommend · 45
    Cover of Designing Data-Intensive Applications
    2014–2026

    Designing Data-Intensive Applications

    Martin Kleppmann
    457 recommend · 846
    Cover of Code Complete
    2007–2026

    Code Complete

    Steve McConnell
    393 recommend · 894
    Cover of Writing solid code
    2008–2026

    Writing solid code

    Steve Maguire
    18 recommend · 39
    Cover of Beautiful Code
    2007–2025

    Beautiful Code

    Andy Oram
    48 recommend · 109
    Cover of Refactoring
    2007–2026

    Refactoring

    Martin Fowler
    94 recommend · 179
    Cover of Write Great Code
    2009–2026

    Write Great Code

    Randall Hyde
    16 recommend · 25
    Cover of Cracking The Coding Interview
    2010–2026

    Cracking The Coding Interview

    Gayle Laakmann McDowell
    178 recommend · 553