May 04, 2024

Fuck you and your performance counters

Fuck you and your performance counters

Genius is as genius does: as a degenerate.

There is a tried and tested method of obtaining free physical memory size in C#: by referencing VisualBasic DLL and using its ComputerInfo class. But this is not good enough for geniuses because it does not fit their goal of utmost sophistication. So, those geniuses preach that using PerformanceCounters is a "preferred" method.

Now, google "PerformanceCounters hang" or "takes too long", and you will find numerous questions as to why that class takes MINUTES to instantiate. Of course, genius degenerates explain that it is by design and normal. Fuck that!

I still reference VisualBasic DLL and obtain my free memory in a fraction of millisecond, and they are welcome to wait.

Posted by: LinuxLies at 01:07 PM | No Comments | Add Comment
Post contains 131 words, total size 1 kb.




What colour is a green orange?




15kb generated in CPU 0.517, elapsed 0.5852 seconds.
35 queries taking 0.1023 seconds, 148 records returned.
Powered by Minx 1.1.6c-pink.