Know a great AI tool or AI news source? Submit it to AiByts

performance

73 stories

Stories

  • How Rust Changed Me As A Developer

    The programming language you use affects how you think as a software developer 1. That may seem surprising to you; you may have picked up JavaScript pretty quickly knowing Python, and it didn't really affect how you think or develop. That's because those languages are pretty similar.

    Lobsters17 min read
  • A C++ Quicksort Faster Than std::sort

    blqsort is a very fast quicksort algorithm. I am not aware of any other general-purpose comparison-based sorting algorithm that is faster on random data. Only specialized SIMD-based algorithms are generally faster when dealing with small primitive data types.

    Lobsters40 min read
  • Optimizing reference deletions in Git

    References, along with objects, form the backbone of Git's storage mechanism. Simply put, a reference is a named pointer to a particular object within the repository.

    Lobsters7 min read
  • Scriptable GeoDNS: leaving AWS for Bunny

    I moved this blog from CloudFront and Route 53 to a European provider. JavaScript code running on each DNS query returns the closest servers,...

    Lobsters11 min read
  • Shlemiel the Painter Is Back: How Zig’s libc Rewrite Made SQLite Slower

    Back in 2001, Joel Spolsky – whose writings had a big influence my career – wrote a great piece titled Back to Basics. The premise of the piece is that practitioners should understand the basics: However abstract and remote we may seem from the basic algorithms that drive computing, they can…

    Lobsters5 min read
  • Beating the compiler at signed 32-bit division

    Dividing integers is slow on our processors. A 32-bit division costs: processor latency throughput Emerald Rapids about 12 cycles one every 6 cycles Zen 4 9 to 12 cycles one every 6 cycles Zen 5 10 to 13 cycles one every 6 cycles Arrow Lake performance core 12 cycles one every 6 cycles Apple M4 ……

    Lobsters9 min read
  • Switch lowering in GCC

    We have seen in a previous post that switch statements are more complex than they seem. The compiler is able to implement them as a decision tree (even though maybe it shouldn't). Is that everything it can do?

    Lobsters19 min read
  • A faster way to compute signed 64-bit floor division by constants

    What is signed integer floor division?Signed integer floor division is where you do a/b and get a result that rounds towards −∞,whereas standard (“truncated”) signed division rounds towards 0.As stated in Hacker's Delight: “[I suspect that] floor division more often gives the result you want”.

    Lobsters35 min read
  • Profiling Org->HTML formal grammar and optimizing it: orgwebalchemy

    OrgWebAlchemy now renders Markdown, understands figures, named elements and real table rows, and got up to 6x faster. This is the story of the profiling that found a quadratic collapse pass and a per-character scanner, what changed, and the numbers measured before and after.

    Lobsters27 min read
  • How close can pure FP get to C?

    In Why Lean is Faster Than Rust, the author shares an impressive result: a DEFLATE compression library written in Lean 4, a functional programming language and proof assistant, outperforming an equivalent Rust package that crates.io says has been downloaded over a billion times. From the article:

    Lobsters9 min read

Showing 18 of 73 stories

Load more stories
AiByts Weekly Brief

Get the top AI news and tools straight to your inbox every week.

Weekly · AI news

Join 15,000+ AI enthusiasts