Rust pills #3 When references aren’t enough, and you see in a dead end to use clone, always remember you have smart pointers. Arc, Rc and Cow can help you in many situations and with way less cost than a simple clone of your data. #rust #coding #programming #tips #smartpointers #performance
Rust smart pointers: Arc, Rc, Cow for performance
More Relevant Posts
-
🚀 Just released a new video on the Crossterm crate in Rust! 🦀 Crossterm is a powerful and cross-platform library that lets you build rich terminal applications — and in this video, I dive deep into: 🎯 Cursor control (move, hide, show, and more) 🎨 Styled output with colors and attributes 🖥️ Terminal handling ⌨️ Event handling (keyboard, mouse, resize) If you want to make your terminal come alive using Rust, this video is for you! ⚡ 🎥 Watch here: https://lnkd.in/dpcdqQXM 🔗 Crate: https://lnkd.in/daKE4qxH #Rust #Crossterm #RustLang #Programming #TerminalApp #Coding #OpenSource #RustCrate #LearningRust #DevCommunity
To view or add a comment, sign in
-
⏰ Wasting time on messy code? Not anymore! Discover the top 5 VS Code extensions pros use to save hours every week. From instant formatting with Prettier to next-level debugging with Console Ninja—these tools are non-negotiable for serious development. Tap to watch the full breakdown! 💻 Powered by QT LabX #WebDev #Programming #VSCodeExtensions #Tech #QTLabX
To view or add a comment, sign in
-
On Day 286 of my #300daysofcode challenge, I'm sharing my solution to LeetCode Problem 3461, "Maximum Length of Semi-Decreasing Subarrays." This problem is a good reminder that a simple brute-force approach is often the most direct and effective solution for smaller constraints or as a foundational step before optimization. My video provides a clear walkthrough of this logical method. #DataStructures #Algorithms #LeetCode #CodingInterview #Programming #ProblemSolving #300daysofcode
To view or add a comment, sign in
-
Optimizing Path Traversal with Path Compression 🔄 Join Richard Feldman to demystify type inference by building it yourself. Implement the Hindley-Milner system, parse code, resolve scope, generate bytecode, and create a type system from scratch. https://lnkd.in/gQ2iHXFw #WebDev #Programming #Coding #LearnToCode #CompilerDesign
To view or add a comment, sign in
-
There is something very satisfying about seeing a model you exported from Blender moving in a software renderer you wrote from scratch. By the end of this week, the 9th part of our tutorial series on writing a software renderer in Odin from scratch will be out. In this part, we're going to implement an OBJ loader. #odin #raylib #c #programming #coding #rendering #rasterizer
To view or add a comment, sign in
-
Unlock the true performance of your C++ applications! Just published a deep dive on Substack about #PerfLite, a lightweight micro-benchmarking library. Learn to measure accurately, interpret StdDev, and outsmart compiler optimizations. Essential for any C++ dev! Check it out: https://lnkd.in/euzutaea #CPlusPlus #Programming #TechBlog #DevTools #HighPerformance #CppCommunity
To view or add a comment, sign in
-
-
LeetCode #11 - Container With Most Water Two Pointer Approach | Time Complexity: O(n) linear time complexity This problem is a great example of how the Two-POinter technique can turn an O(n^2) brute force approach into an efficient O(n) solution. The Idea: 1. Start with two pointer at both ends 2. Move the smaller height pointer inward 3. Keep track of the maximum area #LeetCode #DSA #Coding #programming #ProblemSolving #TwoPonters #CPP #Prepration #DataStructure #Algorithm #LateNight
To view or add a comment, sign in
-
-
Debugging is a skill that combines a clear strategy with logical thinking—the better the approach and understanding of the code, the faster and more efficiently problems are solved. #WebDevelopment #Debugging #CodingTips #Programming #SoftwareEngineering #ProblemSolving #TechTips
To view or add a comment, sign in
-
💡 Day 84 of My LeetCode Journey – Problem 1614: Maximum Nesting Depth of Parentheses Today’s problem tested my understanding of stack concepts and string traversal — determining how deeply parentheses are nested in a given string. 🧠 Concept: The idea is simple yet elegant: Traverse the string character by character. Use a counter to track the number of open parentheses (. Update the maximum depth whenever the count increases. Decrease the counter when a closing parenthesis ) appears. Example: "(1+(2*3)+((8)/4))+1" → Maximum depth = 3 ✅ Key Takeaways: Strengthened understanding of parentheses matching and depth counting. Improved ability to simulate stack behavior without extra space. Reinforced skills in clean logic implementation and iteration control. Small yet powerful problems like this sharpen clarity, precision, and logical thinking 🧩 #LeetCode #ProblemSolving #100DaysOfCode #DSA #CodingChallenge #Programming #LogicBuilding #Cplusplus #DailyCoding #LearningEveryday
To view or add a comment, sign in
-
-
What exactly is inside a C++ object? This doc explains the object model and its memory layout. ➜Objects hold only data members directly. ➜A hidden vptr is added for classes with virtual functions. ➜Multiple and virtual inheritance add extra pointers for base class management. ➜The vtable is global and not stored within each object. Understanding this helps write more efficient C++ code. #cpp #cplusplus #memorylayout #programming #coding #softwaredevelopment
To view or add a comment, sign in
More from this author
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development