Best of PerformanceMay 2024

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    Stop Using UUIDs in Your Database

    This post discusses the performance issues and storage impact of using UUIDs as keys in a database.

  2. 2
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Use React Developer Tools – Explained With Examples

    Learn how to use React Developer Tools to inspect and debug React applications efficiently. Install the extension, navigate the interface, and explore component state and props. Debug errors and analyze performance using React DevTools.

  3. 3
    Article
    Avatar of asayerasayer·2y

    Understand React Hooks with these Visual Guide Cheatsheets

    Learn about React hooks through visual cheatsheets. Understand the core hooks like useState, useEffect, useReducer, useContext, useMemo, useCallback, and useRef. Also, explore additional hooks like useDeferredValue, useLayoutEffect, useDebugValue, and useId. Improve your React development with these powerful tools.

  4. 4
    Article
    Avatar of communityCommunity Picks·2y

    9 Caching Strategies for System Design Interviews

    This post explores the fundamentals of caching in system design and delves into different caching strategies that are essential knowledge for technical interviews.

  5. 5
    Article
    Avatar of devtoDEV·2y

    The Power of Reduce: Optimizing JavaScript Code for Speed and Efficiency

    Learn about the reduce method in JavaScript arrays and how it can optimize code for speed and efficiency. Discover how it compares to other iteration methods and the benefits of using reduce.

  6. 6
    Article
    Avatar of devtoDEV·2y

    JavaScript is not the problem

    A performance issue in an Angular 11 app was caused by a CSS rule, not JavaScript. The article discusses the use of JavaScript in web development and the importance of optimizing static assets and JavaScript bundles. It also addresses the role of Web Components and the Shadow DOM, concluding that excessive use of JavaScript is the problem, not JavaScript itself.

  7. 7
    Article
    Avatar of devtoDEV·2y

    Understanding JavaScript Debounce vs Throttle for Better App Efficiency

    Learn about throttle and debounce techniques in JavaScript to optimize event handling and improve performance.

  8. 8
    Article
    Avatar of joshwcomeauJosh W Comeau·2y

    Snappy UI Optimization with useDeferredValue

    Learn how to optimize the performance of React applications using the useDeferredValue hook. Understand the problem of re-rendering the code snippet in the UI and the concept of high-priority and low-priority areas in UI optimization.

  9. 9
    Article
    Avatar of bytebytegoByteByteGo·2y

    How Facebook served billions of requests per second Using Memcached

    Learn how Facebook enhanced Memcached to build a distributed key-value store and scale it to serve billions of requests per second. Discover the challenges in scaling Memcached, including managing latency and failures within a cluster, reducing load on the database, and handling consistency across regions.

  10. 10
    Article
    Avatar of collectionsCollections·2y

    The Performance Impact of Inline Styles vs CSS

    Using inline styles can improve performance, resulting in smaller HTML and JS files, better browser render time, web vitals, and first contentful paint. Inline styles may be a better option for performance, especially on mobile devices.

  11. 11
    Article
    Avatar of communityCommunity Picks·2y

    Next.JS CMS - Top choices in 2024

    A post discussing the benefits of integrating a headless CMS with Next.js for improved performance, SEO, scalability, flexibility, security, and streamlined workflows. It provides a list of top Next.js CMS choices in 2024, along with their features and pricing details.

  12. 12
    Article
    Avatar of communityCommunity Picks·2y

    Optimizing PHP applications for performance — Mateus Guimarães

    Learn how to optimize PHP applications for better performance by enabling OPCache and tuning PHP-FPM settings.

  13. 13
    Article
    Avatar of logrocketLogRocket·2y

    WinterJS vs. Bun: Comparing JavaScript runtimes

    WinterJS and Bun are compared in terms of speed and features. WinterJS is a fast JavaScript runtime built in Rust, while Bun focuses on providing elegant APIs. They have differences in OS support, TypeScript support, and framework compatibility. WinterJS claims to be the fastest runtime, and Bun also emphasizes speed. WinterJS is compatible with major frontend frameworks and supports Cloudflare Workers API, while Bun has wider adoption but less compatibility with frameworks like Next.js and Remix. Performance tests show that Bun performs better in a simple HTTP request scenario.

  14. 14
    Article
    Avatar of communityCommunity Picks·2y

    What we learned building our SaaS with Rust 🦀

    This post explores the experiences of building a SaaS with Rust, highlighting the benefits, challenges, and the evolving ecosystem. It emphasizes the performance, safety, and concurrency advantages of Rust, discusses the learning curve, the maturity of the ecosystem, and the importance of documentation within the code.

  15. 15
    Article
    Avatar of baeldungBaeldung·2y

    Introduction to Java 22

    Java 22 brings updates to the Java language, including unnamed variables and patterns, statements before super(), string templates, and implicitly declared classes and instance main methods. It also introduces new libraries such as the Foreign Function and Memory API, Class File API, Stream Gatherers, Structured Concurrency API, Scoped Values, Vector API, and updates to tooling, such as multi-file source programs. Additionally, there are performance enhancements in the G1 Garbage Collector with region pinning.

  16. 16
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    What is Throttling in JavaScript? Explained with a Simple React Use Case

    Learn about throttling in JavaScript, a technique used to limit the rate at which a function is called. Throttling can improve website performance by controlling the frequency of function execution. Implement throttling in JavaScript with a simple React use case.

  17. 17
    Article
    Avatar of asayerasayer·2y

    Four Ways of Caching Node.JS APIs for High Performance

    Learn about different caching techniques for optimizing Node.js APIs, including in-memory caching, distributed caching, Content Delivery Networks (CDNs), and the Cache-Aside pattern.

  18. 18
    Article
    Avatar of communityCommunity Picks·2y

    Optimizing React Table Rendering By 160x !!!

    Learn how to optimize React table rendering by 160x using virtualization techniques.

  19. 19
    Article
    Avatar of appsignalAppSignal·2y

    What's New in Node.js 22

    Node.js 22 offers a stable release with new features such as stabilized Watch mode, default-enabled WebSocket client, and a new --run flag for script execution. It also includes enhancements to loading ES Modules with require(), pattern matching in the fs module, AbortSignal performance, Stream highWaterMark, and an upgrade to V8 v12.4. Upgrading can be done through direct download or using a version management tool like Volta.

  20. 20
    Article
    Avatar of lobstersLobsters·2y

    Why, after 6 years, I’m over GraphQL

    The author explains why they no longer recommend GraphQL due to security risks, performance issues, coupling, complexity, and more. They suggest considering an OpenAPI-compliant JSON REST API as an alternative.

  21. 21
    Article
    Avatar of asayerasayer·2y

    A Deep Dive into Hooks in React 18

    React 18 introduces powerful hooks that enhance development experiences and improve performance. These hooks include useTransition, useMutableSource, useDeferredValue, and useSyncExternalStore. They enable smooth transitions, integration with external data sources, deferred processing, and synchronization with external state management systems.

  22. 22
    Article
    Avatar of communityCommunity Picks·2y

    Copy Or Reference? Understanding Javascript Object Assignments

    Learn the different ways to assign objects in JavaScript, the difference between direct assignment and copy, and when to use shallow copy and deep copy.

  23. 23
    Video
    Avatar of t3dotggTheo - t3․gg·2y

    The Problem With UUIDs

    Using UUIDs as primary keys in databases can have drawbacks in terms of performance and storage utilization. Different versions of UUIDs offer different features and trade-offs. There are also alternative methods for generating unique identifiers.

  24. 24
    Article
    Avatar of communityCommunity Picks·2y

    DuckDB vs Polars — Which One Is Faster?

    This post presents a benchmark comparing the performance of DuckDB and Polars, two data tools. Polars outperforms DuckDB in reading CSV files and executing window functions, while DuckDB is faster in join operations. The performance of both tools is similar overall.

  25. 25
    Article
    Avatar of telerikTelerik·2y

    5 Reasons You Should Consider Using Next.js in 2024

    Next.js provides a powerful combination of performance, developer experience, flexibility, and industry adoption, making it a compelling choice for web development in 2024. It offers performance optimizations, caching mechanisms, optimized image and font loading, static site generation (SSG), incremental adoption, customization options, various rendering modes, data fetching options, and flexible deployment choices.