|
If it has windows forms or components in it - anything with a designer, it will be loading your built binaries into your process so that it can update the visual designer aspects.
And since they are (I am assuming here) .NET, that requires the CLI which tends to preallocate gobs of RAM for doing just about anything.
If I had to guess, I'd say that's at least in part what it is, based on what you wrote.
To err is human. Fortune favors the monsters.
|
|
|
|
|
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
|
|
|
|
|
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.
modified 26-Jan-23 8:36am.
|
|
|
|
|
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
|
|
|
|
|
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.
modified 29-Jan-23 7:16am.
|
|
|
|
|
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.
|
|
|
|
|
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'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)
|
|
|
|
|
How many simultaneous compiles are you set for? I think the default is one per core.
|
|
|
|
|
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
|
|
|
|
|
"with less than"
with fewer than
|
|
|
|
|
published under the CPOPL (CodeProject Open Poetic License)
with "the city" being WinForms, WPF, ASP ? and, the ghosts of metro/modern silverlight, etc. ? in the time of naked baby EcmaScript/JavaScript with no jQuery, or Frameworks ?
the city: the center of a crumbling empire
long past the centuries it ruled the world,
but, still a beehive of commerce and trade
the city: new layers, over layers of ruins
over forgotten foundations; flimsy bridges,
broken shrines, mobs of homeless wanderers
now, destiny decides to build a new future,
to abandon the old city, give flesh to the
new vision, that will resurrect the empire
the need for complex faciliites in the old
city, for roots to keep commerce and trade
flowing: the new vision hit history's wall
bedrock had to be breached: hard, as usual;
grandiose idealism devoured time, as usual it takes a fossil with an antiquated skill set to write this ?
Viva TypeScript !
cheers, bill
"meditation" ... in poetic sonnet form, with the (self imposed) constraint that each line must have the same number of characters ... with the exception of one additional punctuation mark at the end of any line
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
Ah Maui, bargepool would I touch it not with. For desktop dev, Uno or Avalon should be your guide.
|
|
|
|
|
as always, i pay sober (not poetic) attention to your words, Pete.
thanks, bill
p.s. i am looking around like the proverbial "one-eyed cat looking in a seafood store," for a new
development reality, but, i am addicted to C#, and allergic to XAML: i want to see beautiful controls/widgets, and drag-drop them onto ... something, then use the old bog standard methods, events. maybe i am too old to change horses.
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
modified 26-Jan-23 9:37am.
|
|
|
|
|
Some obligatory references:
City[^] by Clifford Simak
Cities in Flight[^] by James Blish
The City We Became[^] by N. K. Jemisin
All permanent(*) members of my science fiction / fantasy collection.
(*) Books which I reread periodically. There are some which I ration myself to only rereading them every few years.
Software Zen: delete this;
|
|
|
|
|
thanks Gsry,
Been a long time since i read sci-fi, but J.G. Ballard comes to mind.
literary:
Percy Shelley ... Ozymandias
Borges: ,,, The Library of Babel, Asterion
philosophy:
the recurrent myth of a "lost paradise:" Rene Dubos"The Mirage of Heakth"cheers, bill
history:
Lisa Jardine, "Worldly Goods" the profound stimulus to the Renaissance that unique goods from China (silk, porcelain) had, as well as the assimilation of ancient Greek science, geometry, astronomy from the Arabs who had preserved it and developed it much further,
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
|
perhaps consider posting a CP article, or tip-trick ?
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
modified 26-Jan-23 21:49pm.
|
|
|
|
|
what's a trick tip? where is located?
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Never mind, I found it referenced on CP website
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Did not work out as I wanted.
I wanted to merge my library with GLFW library but didn't work out as I thought. Had some issues with porting GLFW source into the project. Not a big deal, but was looking to have one static library. But GLFW already had one so I just have to make 2 references. Just an experiment.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
I don't use, or know, any of the libraries you mention, or program in C/C++. So, can't respond. cheers, Boll
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
I use mostly C. For me static libraries are preferred.
I was trying to make one big static library of GLFW and my Font library (nesting them).
Turns out too much work and not needed.
Thanx though.
Your encouragement gave me pause to review some other stuff for a possible CP article.
Getting old so want to leave something behind.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
What's a "nested library"?
|
|
|
|
|
It's a library that uses another library. I call it nested but maybe the term is misplaced.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|