Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "resource usage"
-
I like memory hungry desktop applications.
I do not like sluggish desktop applications.
Allow me to explain (although, this may already be obvious to quite a few of you)
Memory usage is stigmatized quite a lot today, and for good reason. Not only is it an indication of poor optimization, but not too many years ago, memory was a much more scarce resource.
And something that started as a joke in that era is true in this era: free memory is wasted memory. You may argue, correctly, that free memory is not wasted; it is reserved for future potential tasks. However, if you have 16GB of free memory and don't have any plans to begin rendering a 3D animation anytime soon, that memory is wasted.
Linux understands this. Linux actually has three States for memory to be in: used, free, and available. Used and free memory are the usual. However, Linux automatically caches files that you use and places them in ram as "available" memory. Available memory can be used at any time by programs, simply dumping out whatever was previously occupying the memory.
And as you well know, ram is much faster than even an SSD. Programs which are memory heavy COULD (< important) be holding things in memory rather than having them sit on the HDD, waiting to be slowly retrieved. I much rather a web browser take up 4 GB of RAM than sit around waiting for it to read the caches image off my had drive.
Now, allow me to reiterate: unoptimized programs still piss me off. There's no need for that electron-based webcam image capture app to take three gigs of memory upon launch. But I love it when programs use the hardware I spent money on to run smoother.
Don't hate a program simply because it's at the top of task manager.6 -
Why do I program everything myself in C, even a rest service? By writing everything yourself in C you make simple things complex to make complex things simple.
Writing a rest service for example learns you a part of http protocol, how sockets work, how to create a parser (in this case json). Three thing's you would miss if I used python.
On top, your rest service uses WAY lesser resource than written in python for example. Especially for CPU usage.
Allocating and free-ing still often have issues there, but I consider it a skill problem / discipline issue. Not blaming C for that. The rules are clear.13 -
Is your code green?
I've been thinking a lot about this for the past year. There was recently an article on this on slashdot.
I like optimising things to a reasonable degree and avoid bloat. What are some signs of code that isn't green?
* Use of technology that says its fast without real expert review and measurement. Lots of tech out their claims to be fast but actually isn't or is doing so by saturation resources while being inefficient.
* It uses caching. Many might find that counter intuitive. In technology it is surprisingly common to see people scale or cache rather than directly fixing the thing that's watt expensive which is compounded when the cache has weak coverage.
* It uses scaling. Originally scaling was a last resort. The reason is simple, it introduces excessive complexity. Today it's common to see people scale things rather than make them efficient. You end up needing ten instances when a bit of skill could bring you down to one which could scale as well but likely wont need to.
* It uses a non-trivial framework. Frameworks are rarely fast. Most will fall in the range of ten to a thousand times slower in terms of CPU usage. Memory bloat may also force the need for more instances. Frameworks written on already slow high level languages may be especially bad.
* Lacks optimisations for obvious bottlenecks.
* It runs slowly.
* It lacks even basic resource usage measurement.
Unfortunately smells are not enough on their own but are a start. Real measurement and expert review is always the only way to get an idea of if your code is reasonably green.
I find it not uncommon to see things require tens to hundreds to thousands of resources than needed if not more.
In terms of cycles that can be the difference between needing a single core and a thousand cores.
This is common in the industry but it's not because people didn't write everything in assembly. It's usually leaning toward the extreme opposite.
Optimisations are often easy and don't require writing code in binary. In fact the resulting code is often simpler. Excess complexity and inefficient code tend to go hand in hand. Sometimes a code cleaning service is all you need to enhance your green.
I once rewrote a data parsing library that had to parse a hundred MB and was a performance hotspot into C from an interpreted language. I measured it and the results were good. It had been optimised as much as possible in the interpreted version but way still 50 times faster minimum in C.
I recently stumbled upon someone's attempt to do the same and I was able to optimise the interpreted version in five minutes to be twice as fast as the C++ version.
I see opportunity to optimise everywhere in software. A billion KG CO2 could be saved easy if a few green code shops popped up. It's also often a net win. Faster software, lower costs, lower management burden... I'm thinking of starting a consultancy.
The problem is after witnessing the likes of Greta Thunberg then if that's what the next generation has in store then as far as I'm concerned the world can fucking burn and her generation along with it.6 -
Is it just me or the so-called Cloud (or more accurately not our servers) allowed terribly inefficient technologies to exist as backends? Just google "clear grpc benchmark reddit" - I think there should be another column "price per hour in AWS for given resource usage". (sorry, can't post links yet)13
-
What the fuck
Is this the new internet?
(Messenger, two pages of a webshop, a youtube search and a video.
5 -
As a long time Ubuntu user, last month I upgraded from Xenial to Bionic to try the new Gnome based desktop.
At first I thought it was a good transition, everything was working fine, beautiful UI, nice animations, so I installed all my tools and started the real work... then the problems started. The memory usage was always very high and only getting higher, the animations were stuttering and laggy, and it was having an unrecoverable freeze at least twice a week. Searching the web I was seeing more and more people complaining about freezes, lags, bugs, memory leaks, password input field bugs... damn, how I missed Unity! That was it, Gnome Shell made me miss Unity more and more.
This week I installed Unity 7 and purged Gnome Shell from Bionic. Now I'm happy again!
It's so good to be free of the anxiety caused by the lack of stability of the system, so good to know that the system will not break or freeze if I'm doing a resource intensive task. Now he sh** is working fast and stable, and I'm here wondering why such a good DE could be dumped for something so buggy like Gnome.1 -
How resource calculations for software services like code analysis, monitoring, etc are done:
Opening fridge, putting all the beer one can find in it.
Opening the necessary tools, e.g Excel, Accounting software, ....
Drinking the first beer.
Starting to aggregate the monthly costs - cause you can never trust the reports written by someone else...
First beer poof.
Looking at the monthly cost, adding columns "Intended use", "Actual usage pattern", "Usage factor"...
Opening next beer...
Usage factor is btw a factor of 0.1 ... 1.0 - to give an estimate how much the products feature are actually used, for further analysis if the invest is justified or not...
Oh. Another half bottle gone...
Filling in the columns...
Oh. Bottle empty and the next one toooooooooooooooo...
*burping*
*cracking finger joints*
Now let's get to the sad part...
Next worksheet, adding infrastructure costs...
Cost and description as columns.
Hehe. Column sounds like gollum.
Another beer...
Ugh. Need the paper reports, manually typing off things for stuff that was e.g. tax deductible.
Many beers die during this task. Poor little beers, dying for such an boring and mundane task...
SUM is a real useful function. I don't think I can add numbers anymore.
Now we can add another sheet.
Hehe. Sheet sounds like shit. And yes, everything in this file is shit.
Summing up costs from both sheets and including the cost factor from 1
... Beeeeeeeer Beeeeer beer we need more beer here... Beer beer beer...
Where was I. Oh yeah. Cost factorization total vs effective.
Why do I want to get even more drunk.
Oh yeah. Most software is completely underused and the costs aren't justified.
Let's add some colored highlighting ...
Uuuuh. ,Too much red. Better change the highlights.
Too much red.
More beer.
Don't give a fuck.
Hm.
Time for some whiskey.
What else is there to do....
Oh yeah.
Diagrams.
The bloody wankers from accounting need diagrams as numbers are too boring.
Not that everything in accounting is boring, no matter how much you paint colors on it... *sigh*
Hm. More whiskey...
Hehe. Whiskey rhymes with frisky.
Uff. Now just need to write mail. Mail mail mail....
"Copy paste the last mail from last month"
Hm.
Ah.
*sipping whiskey*
Spell check extension - to the rescue.
Thesaurus *burps*.
Let's change a few words here and there... Maybe another paragraph there.
Uh....
Trying to attach file...
*fucking mouse is pretty constantly crashing into empty beer bottles*
Done.
Damn.
Need to press send button.
*Creating mess on the desk by just randomly crashing the beer bottles*
Done.
*Pressing computers power button*
Mwahahahaha. No mouse needed.
*regretting to stand up too quickly, nearly barfing on the floor*
Couch ... Where Couch...
After hitting several doors, frames and other stuff, the glorious mission ended successfully with a most graciously executed gut buster on the couch.
(Regretting next morning to have emptied two 6 packs and a few glasses of whiskey) -
Any devs know if the Xbox One X will allocate more resources to UWP apps or do we have the same resource restrictions as the Xbox One S?
If there are more allocated, is there a way to simulate an Xbox One S usage?
Couldn't find any documentation on UWP one x development :-/ -
Useless JS library #0 ready.
Communication among windows in the same window group (iframes and popups with a common root), with dynamically generated objects, so it feels as though you were just calling local async methods.
Useless JS library #1 will be a layout manager, a program that manages panes and tabs, context menus, toolbars and a menubar much like Visual Studio, and let all of that communicate through Useless JS library #0.
Since JS is sloooooow, I try to make everything run the fastest possible, trading startup for runtime resource usage. #0 fulfills this, any message will take exactly 4 stops, although registering a callable method set takes .3 sec.8 -
Being too careful and always trying to reduce memory and processoe usage might be a bad thing after all. Lengthening development time and inducing more stress on the developer just to reduce resource usage is not very sensible when dealing with small to medium size programs that doesn't deal with big data/file types.
What made me notice this habit in programmers was when I was smashing my head on the keyboard contemplating what method I should use to store the history of outputs for a fucking text based program that has minimal gui elements..
Having ocd as a programmer is a nightmare. But thank god it's not as bad as it was a year ago. I couldn't even read something without repeating the same page over and over again because my stupid brain decided that I was not reading it right. WHAT THE FUCK IS READING IT RIGHT ? Thank god for my psychiatrist and pills. I can atleast work on my projects without wanting to kill myself now ! 😂1 -
Why does snapchat on android suck so badly?
Lemme get this out of me.
They admitted to focusing on the iOS variant more from now on. Why? Becuase it has a larger user base.
That means they will not give many fucks about the ONE BILLION ANDROID USERS.
But about the app itself...
With quite normal usage (let's say around 30 minutes opened in total, daily) snapchat uses more battery than my screen. What the fuck?
It is literally at the very top.
It might go up to 800mAh calculated drain. I don't know how they did it.
Anyways, it doesn't even work well.
It has a lot of lag, crahses, and makes my phone as hot as a cup of tea.
I suspect that's becuase it keeps using the camera. That is, keeps it on even when you are on a different screen. This is bullshit. I do sometimes chat with people on SC but I try to minimise it for this reason.
The UI itself is okayish but still lags beyond comprehension in comparison to other apps (wow, I love the android discord client, it has full functionality at low resource cost).
As far as I'm concerned it uses some sort of web technology mix. It does use chromium so I suspect HTML, CSS and JS is also present in the source code.
Also, let's make this a terrible mobile apps rant - feel free to contribute.4 -
ToyStack Virtual OS - A secure, cloud-based virtual OS that works on any device—no installation required, fully customizable, and always accessible.
ToyStack Virtual OS redefines virtual desktop computing by offering a secure, scalable, and high-performance cloud-based operating system accessible directly through any web browser. Eliminating the need for traditional software installations, ToyStack’s agentless approach simplifies deployment and reduces hardware dependency—cutting costs while enabling seamless access to workspaces from anywhere in the world.
Designed with enterprise-grade security at its core, ToyStack Virtual OS integrates multi-factor authentication (MFA), end-to-end encryption, and AI-powered threat detection to safeguard sensitive data. It adheres to globally recognized compliance standards, including ISO 27001, 27017, 27018, and SOC 2 Type II, ensuring protection against evolving cyber threats and regulatory requirements.
Flexibility is at the heart of ToyStack’s design. It supports Windows, Linux, and custom operating systems, all managed through a centralized Control Tower. This intuitive management console enables IT administrators to enforce group policies, streamline user provisioning, and monitor performance—all in real-time. Whether managing hybrid teams, remote workforces, or distributed operations, ToyStack adapts effortlessly to dynamic business needs.
Performance is never compromised, thanks to AI-driven resource optimization that intelligently allocates computing power based on workload demands. This ensures zero-lag experiences and seamless scaling during peak usage, empowering teams to remain productive without interruptions.
Beyond performance, ToyStack Virtual OS drastically reduces IT overhead and operational complexity. Built-in automation handles provisioning, updates, and security enforcement, minimizing administrative burdens. With its pay-as-you-go pricing, businesses can avoid costly licensing fees and infrastructure investments, making it a cost-effective alternative to traditional Virtual Desktop Infrastructure (VDI).
Whether you’re scaling operations globally, enabling BYOD policies, or enhancing remote work security, ToyStack Virtual OS delivers an unmatched combination of simplicity, security, and performance—future-proofing your organization for the modern digital workspace.4 -
Choosing the Right Sports Netting for Your Facility
When it comes to protecting your sports facility and ensuring the safety of players, spectators, and property, choosing the right sports netting is essential. Whether you're outfitting a baseball field, tennis court, or any other sports arena, selecting durable and high-quality netting is a crucial step. In this blog, we'll guide you through important considerations for sports netting installation and help you understand how to choose a reliable net manufacturer.
1. Why Sports Netting is Essential
Sports netting plays a vital role in preventing balls from flying out of the field and causing damage or injury. It acts as a protective barrier that keeps the game safe, while also maintaining a clear boundary around the playing area. Additionally, sports netting can enhance the aesthetics of your facility by providing a sleek and professional look.
2. Key Considerations for Sports Netting Installation Material Quality
The material of your sports netting is one of the most important factors to consider. Durable, high-quality materials like polyethylene or nylon are often preferred for their weather-resistant properties and long-lasting performance. Choosing netting made from the right material ensures that your facility’s netting will hold up to the wear and tear of both usage and environmental factors.
Netting Size and Shape
The size and shape of the netting should align with the specific needs of your facility. For example, if you need sports netting installation on a baseball diamond, the netting must be tall enough to catch foul balls. If you're installing netting around a soccer field, you might need lower-profile netting that still provides effective boundary control.
Customization Options
A good net manufacturer will offer customization options to ensure that the netting fits perfectly with the specific layout of your facility. From color choices to net size, custom netting can give your space a tailored look and function effectively for the type of sport being played.
3. Choosing the Right Net Manufacturer
Selecting the right net manufacturer is key to ensuring that you get high-quality sports netting that meets your needs. A reputable manufacturer will offer products made from the most durable materials and provide professional installation services. Look for a manufacturer with a proven track record in the sports industry, as they will be familiar with the specific requirements for different types of sports facilities.
4. Benefits of Proper Installation
Proper sports netting installation ensures the longevity of your nets and maximizes their effectiveness. Professional installation helps avoid issues such as sagging, misalignment, or inadequate support, which could undermine the protective purpose of the netting.
5. Quick Tips for Sports Netting InstallationChoose a manufacturer with industry experience.Ensure the material is weather-resistant.Opt for custom sizes and shapes tailored to your facility.Have nets professionally installed for optimal results.6. Google My Business and Reviews
If you're looking for the best net manufacturer, Google My Business (GMB) is a great resource. It provides direct access to a company’s contact details, reviews, and past projects. By reading customer reviews and checking their GMB profile, you can gain valuable insights into their service quality and reliability before making your choice.
7. Contact Us
If you're ready to install sports netting at your facility, contact Nets Depot Inc. today! Our team is here to help you choose the perfect netting solution for your needs and provide expert installation. Reach out to us now to get started!
By following these tips and carefully considering your options, you can ensure that your sports facility is protected and looks great with quality sports netting installation from a trusted net manufacturer.
3 -
Experience the Healing Power of Magic Mushrooms at Magic Crystal Health & Wellness – Detroit’s Trusted Magic Mushrooms Dispensary
Welcome to Magic Crystal Health & Wellness, your premier destination for magic mushrooms in Detroit. As one of the leading Magic Mushrooms Dispensaries in Detroit, we offer a safe, supportive environment where you can discover the transformative benefits of psilocybin mushrooms. Whether you're looking for mental clarity, emotional healing, or personal growth, we are here to guide you every step of the way.
Why Choose Magic Crystal Health & Wellness?
As a top-rated Detroit Magic Mushrooms Dispensary, we are committed to providing high-quality, lab-tested magic mushrooms and wellness products that support mental, emotional, and physical well-being. At Magic Crystal Health & Wellness, we understand the powerful potential of magic mushrooms in promoting self-discovery, healing, and personal growth.
Located at 14708 E Jefferson Ave, Detroit, MI 48215, our dispensary is a trusted resource for those looking to explore the profound benefits of psilocybin mushrooms. Our knowledgeable team is here to educate, assist, and support you on your wellness journey with personalized recommendations and guidance.
The Power of Magic Mushrooms: Unlocking Mental Health Benefits
Magic mushrooms, also known as psilocybin mushrooms, have been used for centuries in spiritual and healing practices. Recent research has revealed that psilocybin—the active compound in these mushrooms—can have powerful effects on mental health. Studies show that magic mushrooms can help alleviate symptoms of depression, anxiety, PTSD, and even substance abuse.
As one of the leading Magic Mushrooms Dispensaries in Detroit, we are dedicated to providing our clients with safe, reliable access to magic mushrooms. At Magic Crystal Health & Wellness, we offer a range of products that include dried magic mushrooms, psilocybin-infused tinctures, edibles, and capsules, all designed to help you heal, grow, and improve your quality of life.
What Sets Magic Crystal Health & Wellness Apart?
At Magic Crystal Health & Wellness, we strive to create a welcoming environment where you can explore the benefits of magic mushrooms at your own pace. As part of the growing community of Detroit Magic Mushrooms Dispensaries, we prioritize customer education, safety, and care.
We take great pride in sourcing only the highest quality products, ensuring that each batch of magic mushrooms is lab-tested for potency and purity. Whether you're new to psilocybin or an experienced user, our team is here to provide you with expert advice on dosing, usage, and the potential benefits of psilocybin.
Our dispensary offers more than just products—we offer a holistic approach to well-being. Our services include wellness coaching, educational workshops, and community events to help you fully understand the therapeutic potential of magic mushrooms and how they can fit into your wellness journey.
Why Detroit is the Perfect Place to Explore Magic Mushrooms
Detroit is a city known for its rich history, cultural diversity, and resilience. As interest in magic mushrooms continues to grow, Detroit Magic Mushrooms Dispensaries are emerging as key players in the city's wellness scene. At Magic Crystal Health & Wellness, we are proud to be part of this movement, offering a trusted space for Detroiters to access the healing power of psilocybin mushrooms.
Whether you're seeking relief from stress, anxiety, or depression, or simply looking to explore new dimensions of personal growth, Detroit is the perfect place to begin your journey with magic mushrooms. With the right guidance, support, and products, magic mushrooms can be a transformative tool in your pursuit of mental and emotional wellness.
Visit Us Today!
Ready to experience the healing power of magic mushrooms? Visit Magic Crystal Health & Wellness at 14708 E Jefferson Ave, Detroit, MI 48215. Our dedicated team is here to answer all your questions and help you find the right products for your needs.
For more information, call us at +1 (313) 458-7093. We look forward to welcoming you to Magic Crystal Health & Wellness, where we make your wellness journey a priority.
1
