Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Someone gone insane...

Someone gone insane...

Scheduled Pinned Locked Moved The Lounge
cssvisual-studiodata-structuresperformancequestion
16 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

    It is a .NET Core (Blazor) app... And the code and the final binary is less then a 100 Mb combined... And if I do the compilation from the command line it is much faster and eats almost 90% less memory...

    "Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid." ― Albert Einstein

    H Offline
    H Offline
    honey the codewitch
    wrote on last edited by
    #7

    Then it's almost certainly loading those binaries, like I said. Assuming Blazor has designers. The command line isn't going to load the designers, so no need to load the binaries it just compiled into the process address space.

    To err is human. Fortune favors the monsters.

    Kornfeld Eliyahu PeterK 1 Reply Last reply
    0
    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

      Can you think any justification to VS 2022 to hold to over 8GB of memory while compiling a solution with less than 20 solutions in it?

      "Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid." ― Albert Einstein

      D Offline
      D Offline
      dandy72
      wrote on last edited by
      #8

      Kornfeld Eliyahu Peter wrote:

      a solution with less than 20 solutions in it?

      20 solutions, or 20 projects? I understand that solutions can include solutions of their own, but I've never had to do that. And since each solution, by itself, can contain any number of projects...I'm not entirely surprised. I have a solution with ~20 projects (not solutions), and that can take up ~2GB of RAM...but, that's with R#, which is demonstrably still a pig.

      Kornfeld Eliyahu PeterK 1 Reply Last reply
      0
      • R RickZeeland

        To seem important? I know some developers increase the size of their executables so customers don't have a reaction like "is that all" :-\

        T Offline
        T Offline
        the headless nick
        wrote on last edited by
        #9

        :-D

        --- With regards... The nk.

        1 Reply Last reply
        0
        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

          Can you think any justification to VS 2022 to hold to over 8GB of memory while compiling a solution with less than 20 solutions in it?

          "Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid." ― Albert Einstein

          P Offline
          P Offline
          PhilipOakley
          wrote on last edited by
          #10

          It's like driving a car with 4 extra seats and a top speed of >85mph to the shops across the street. And then, when you take it in for a simple repair, no-one has the replacement part in stock. Name's Logic, Applied Logic (Miss) ;)

          1 Reply Last reply
          0
          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

            Can you think any justification to VS 2022 to hold to over 8GB of memory while compiling a solution with less than 20 solutions in it?

            "Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid." ― Albert Einstein

            O Offline
            O Offline
            obermd
            wrote on last edited by
            #11

            How many simultaneous compiles are you set for? I think the default is one per core.

            Kornfeld Eliyahu PeterK 1 Reply Last reply
            0
            • D dandy72

              Kornfeld Eliyahu Peter wrote:

              a solution with less than 20 solutions in it?

              20 solutions, or 20 projects? I understand that solutions can include solutions of their own, but I've never had to do that. And since each solution, by itself, can contain any number of projects...I'm not entirely surprised. I have a solution with ~20 projects (not solutions), and that can take up ~2GB of RAM...but, that's with R#, which is demonstrably still a pig.

              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu Peter
              wrote on last edited by
              #12

              19 Projects in 1 Solution...

              "Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid." ― Albert Einstein

              "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

              1 Reply Last reply
              0
              • H honey the codewitch

                Then it's almost certainly loading those binaries, like I said. Assuming Blazor has designers. The command line isn't going to load the designers, so no need to load the binaries it just compiled into the process address space.

                To err is human. Fortune favors the monsters.

                Kornfeld Eliyahu PeterK Offline
                Kornfeld Eliyahu PeterK Offline
                Kornfeld Eliyahu Peter
                wrote on last edited by
                #13

                If the command line does not loads the designers (I didn't saw any designers for Blazor until now) they not needed for the compilation... Also - 8Gb of designers?!?!

                "Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid." ― Albert Einstein

                "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                H 1 Reply Last reply
                0
                • O obermd

                  How many simultaneous compiles are you set for? I think the default is one per core.

                  Kornfeld Eliyahu PeterK Offline
                  Kornfeld Eliyahu PeterK Offline
                  Kornfeld Eliyahu Peter
                  wrote on last edited by
                  #14

                  8 in theory, but because of the dependencies it is down to 5... But no difference there between VS and the command line...

                  "Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid." ― Albert Einstein

                  "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                  1 Reply Last reply
                  0
                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                    If the command line does not loads the designers (I didn't saw any designers for Blazor until now) they not needed for the compilation... Also - 8Gb of designers?!?!

                    "Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid." ― Albert Einstein

                    H Offline
                    H Offline
                    honey the codewitch
                    wrote on last edited by
                    #15

                    Yes. I explained all that in the first post. I'm not looking to do so again. Edit: Sorry when I wrote that I was tired. I'll explain this better. Visual Studio has designers. Designers work by accessing the code you JUST compiled. In order to do so, that code must be loaded into memory after it is compiled. Furthermore, .NET is very aggressive in terms of memory allocation, often allocating gigs ahead of time, so when you load these binaries you are tickling .NET's memory allocator again, and it's preallocating.

                    To err is human. Fortune favors the monsters.

                    1 Reply Last reply
                    0
                    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                      Can you think any justification to VS 2022 to hold to over 8GB of memory while compiling a solution with less than 20 solutions in it?

                      "Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid." ― Albert Einstein

                      O Offline
                      O Offline
                      ormonds
                      wrote on last edited by
                      #16

                      "with less than" with fewer than

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups