Best of PerformanceMarch 2024

  1. 1
    Video
    Avatar of communityCommunity Picks·2y

    Stop using COUNT(id) to count rows

    Counting rows using COUNT(*) in MySQL is not slow as often believed. It is actually optimized to be the fastest way to count rows.

  2. 2
    Article
    Avatar of devtoDEV·2y

    Async vs Defer in JavaScript: Which is Better?🤔

    Learn about the async and defer attributes used when including external JavaScript files in HTML documents. Understand their differences, how they affect script execution, and when to use them.

  3. 3
    Article
    Avatar of communityCommunity Picks·2y

    The Faster Redis Alternative

    KeyDB is a fully open source database and a faster drop-in alternative to Redis. It offers high throughput, supports various data structures, has multiple persistence options, and is scalable to any workload. KeyDB also has open source features such as MVCC non-blocking architecture, cross-region multi-master support, better EXPIRation, TLS encryption, and ModJS for creating custom commands.

  4. 4
    Article
    Avatar of devtoDEV·2y

    Processing One Billion Rows in PHP!

    This post discusses the author's experience in optimizing a PHP script to process one billion rows of data. The initial naive implementation took 25 minutes to run, but through various optimizations, the runtime was reduced to 27.7 seconds. The optimizations included using fgets() instead of fgetcsv(), using references where possible, adding type casts, enabling JIT, and implementing multithreading.

  5. 5
    Article
    Avatar of communityCommunity Picks·2y

    10 Cool SQL Optimisations That do not Depend on the Cost Model

    The post evaluates 10 SQL optimizations that do not depend on the cost model. It discusses the applications and support for transitive closure, removing 'silly' predicates, JOIN elimination, provably empty sets, and more.

  6. 6
    Article
    Avatar of watercoolerWatercooler·2y

    Highly Performant Code

    The post discusses the importance of writing performant code and mentions the use of a largeNumber variable.

  7. 7
    Article
    Avatar of communityCommunity Picks·2y

    2x Speed, half memory use, and what's next for toddle?

    toddle has achieved 2x speed, half memory usage through performance improvements. Future plans include improving tooling for developers to build more scalable and performant apps.

  8. 8
    Article
    Avatar of devtoDEV·2y

    React Compiler: Everything You Need to Know

    React 19 promises to simplify memoization and re-rendering by introducing a compiler architecture. This article explores the reasons for having a compiler and the challenges it addresses.

  9. 9
    Article
    Avatar of bytebytegoByteByteGo·2y

    How Uber Uses Integrated Redis Cache to Serve 40M Reads/Second?

    Uber uses an integrated Redis cache called CacheFront to serve 40M reads per second. It helps overcome challenges with low latency database reads and provides scalability, reduced load, and cost savings.

  10. 10
    Article
    Avatar of lobstersLobsters·2y

    The Fastest In-Memory Data Store

    Dragonfly is a performant and cost-efficient in-memory data store that offers 25x more throughput and 12x faster snapshotting than Redis. It is an easy drop-in replacement for Redis without any code changes.

  11. 11
    Article
    Avatar of collectionsCollections·2y

    What's New in Tailwind CSS 4: Performance Improvements, Smaller Footprint, and Increased Flexibility

    Tailwind CSS 4 brings performance improvements, smaller file sizes, and increased flexibility to developers, making it an efficient and convenient way to style web applications.

  12. 12
    Article
    Avatar of collectionsCollections·2y

    What to Expect in React 19: A Major Release with Exciting Improvements

    React 19 is an upcoming major release with exciting improvements such as a new compiler for better performance and easier work. It introduces automatic memoization, eliminates the need for 'useCallback' and 'memo', and replaces 'React.lazy' with react server components. The 'useContext' hook will also undergo changes, and server actions will be more stable.

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

    Vapor: The Future Of Vue

    View's Vapor mode is an alternative compilation strategy inspired by Solid that aims to improve performance by eliminating the use of virtual DOM. It allows for granular opt-in at the component level and reduces the runtime size. Solid, another JavaScript framework, also focuses on performance and uses a similar model based on signals for reactive updates.

  14. 14
    Article
    Avatar of collectionsCollections·2y

    Tailwind CSS v4 Alpha: Open-Sourcing Big Changes for Speed and Simplicity

    Tailwind CSS V4 is now open-sourced and brings a faster engine, composable variants, modern CSS features, and simplified installation and customization. Future updates will include support for JavaScript configuration files, additional dark modes, plugins and custom utilities, and prefix support.

  15. 15
    Video
    Avatar of communityCommunity Picks·2y

    You Should Use Maps and Sets in JS

    Learn about scenarios where it makes sense to use maps and sets instead of objects and arrays in JavaScript. Understand the benefits and performance advantages of using maps and sets. Find out how to serialize a map.

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

    I Suck At SQL, Now My DB Tells Me How To Fix It

    Planet Scale introduces schema recommendations, a new feature that helps improve database performance by providing tailored recommendations based on production database traffic. The recommendations include adding indexes for inefficient queries, removing redundant indexes, preventing primary key ID exhaustion, and dropping unused tables.

  17. 17
    Article
    Avatar of communityCommunity Picks·2y

    Vue.js — What are async components and how to use them?

    Async components in Vue.js can be loaded asynchronously, improving page loading time and user experience. They are useful for large or complex components, components rendered based on user interactions, and components used for less frequent features.

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

    The New React Native Architecture

    The new React Native architecture brings significant improvements, such as faster performance, better scalability, and easier integration of native code. It enables synchronous layout effects, concurrent rendering, and fast JavaScript and Native interfacing. Libraries can benefit from enabling the new architecture as well. However, it is still considered experimental and not recommended for most production apps at the moment.

  19. 19
    Article
    Avatar of devtoDEV·2y

    What Are the Top Database Optimization Techniques?

    Discover effective database optimization techniques for improving performance and learn how to implement them in your projects.

  20. 20
    Article
    Avatar of hnHacker News·2y

    Nanos.org

    Nanos serves static content almost twice as fast as Linux.

  21. 21
    Article
    Avatar of devtoDEV·2y

    Rendering a Million Rows in React by Drawing

    Learn how to render a million rows in React by using the approach of drawing instead of rendering a table. The post explains the techniques and challenges involved in handling large amounts of data and provides insights into the DOM structure and initialization process. It also discusses different approaches to drawing the data on the canvas for smooth scrolling.

  22. 22
    Article
    Avatar of syncfusionSyncfusion·2y

    Working with yield in C#

    Explore C#’s yield keyword for efficient code. Understand its history, usage, and memory benefits, making code cleaner and reducing memory usage.

  23. 23
    Article
    Avatar of lnLaravel News·2y

    How to Detect n+1 Queries in PHP

    The n+1 query problem is a performance issue in software development where unnecessary database calls are made. To detect n+1 queries, developers can use Application Performance Monitoring (APM) tools. Resolving n+1 queries can be done through techniques like eager loading, join queries, or caching.

  24. 24
    Article
    Avatar of devtoDEV·2y

    Enhancing API Observability Series (Part 3): Tracing

    Enhancing API observability through distributed tracing technology by selecting appropriate tools, integrating them into API development, configuring and optimizing the tracing systems, analyzing and visualizing the tracing data, and resolving performance bottlenecks.

  25. 25
    Article
    Avatar of phoronixPhoronix·2y

    Rust-Written Redox OS Enjoys Significant Performance Improvements

    Redox OS, written in Rust, has seen significant performance improvements with improvements to kernel memory integrity and bug fixes in relibc.