¡@

Home 

c# Programming Glossary: allocations

Force garbage collection of arrays, C#

http://stackoverflow.com/questions/1104352/force-garbage-collection-of-arrays-c-sharp

causes the OOM whereas if they where freed before the new allocations the space should be enough. What I'm looking for is a way to..

FindAll vs Where extension-method

http://stackoverflow.com/questions/1531702/findall-vs-where-extension-method

whereas constructing a new list may require multiple array allocations etc. Basically FindAll predicate is closer to Where predicate..

Calling C++ function from C#, with lots of complicated input and output parameters

http://stackoverflow.com/questions/15672351/calling-c-function-from-c-with-lots-of-complicated-input-and-output-paramete

vecVecSmallStruct int verboseLevel There are memory allocations for all the output variables pointers done within the C C code...

String.comparison performance (with trim)

http://stackoverflow.com/questions/1862314/string-comparison-performance-with-trim

Trim but if I use Trim I have the same problem with string allocations. I guess I could check each string and see if it StartsWith..

Does using “new” on a strict allocate it on the heap or stack?

http://stackoverflow.com/questions/203695/does-using-new-on-a-strict-allocate-it-on-the-heap-or-stack

Guid someString ... Use guid That logically has 4 stack allocations one for the variable and one for each of the three new calls..

Is there a way to retrieve a C# app's current memory usage?

http://stackoverflow.com/questions/461139/is-there-a-way-to-retrieve-a-c-sharp-apps-current-memory-usage

for what I need and it seems to listen in on individual allocations and collections which isn't that important to me. Profiling..

.Net vs Java Garbage Collector

http://stackoverflow.com/questions/492703/net-vs-java-garbage-collector

based on the behaviour that most programs exhibit Most allocations are extremely short lived. Initial JVM's did not have generational..

What causes memory fragmentation in .NET

http://stackoverflow.com/questions/5240860/what-causes-memory-fragmentation-in-net

for it to be shared with an external DLL . Large memory allocations taken over longer periods of time is prone to more fragmentation...

High performance TCP server in C#

http://stackoverflow.com/questions/6023264/high-performance-tcp-server-in-c-sharp

takes things one step further by eliminating the frequent allocations of async handlers associated with 'classic' C# async processing..

Memory limitations in a 64-bit .Net application?

http://stackoverflow.com/questions/6107322/memory-limitations-in-a-64-bit-net-application

somewhat of a side note if you can maintain short lived allocations below this threshold it would be better for your overall GC..

How to parse a text file in C# and be io bound?

http://stackoverflow.com/questions/7153315/how-to-parse-a-text-file-in-c-sharp-and-be-io-bound

to stop dealing with strings and characters and remove the allocations to go faster. The following code improves upon the line character..