article thumbnail

Faster remainders when the divisor is a constant: beating compilers and libdivide

Daniel Lemire

In some instances, libdivide can even be more efficient than compilers because it uses an approach introduced by Robison (2005) where we not only use multiplications and shifts, but also an addition to avoid arithmetic overflows. I make my benchmarking code available. What if d is a constant, but not known to the compiler?

C++ 279
article thumbnail

What Adrian Did Next?—?Part 3?—?eBay?—?2004 to 2007

Adrian Cockcroft

After a year or so, and a re-organization, eBay Research labs was formed by Eric Billingsley, and I joined to help recruit the team, including a good friend from Sun, Paul Strong , and build out the innovation programs. It was a great opportunity to explore new technologies and broaden my experience. and he thought it was cool.

Google 52
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Advent Calendars For Web Designers And Developers (December 2021 Edition)

Smashing Magazine

JVM Programming Advent Calendar. Advent of Code. If you prefer a puzzle over an article, take a look at Advent of Code. Created by Eric Wastl, this is an advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

Design 108
article thumbnail

The Return of the Frame Pointers

Brendan Gregg

Apart from library code, maybe your application doesn't have frame pointers either, in which case everything is broken. 2005-2023: The winter of broken profilers However, the change was then applied to x86-64 (64-bit) as well, which had sixteen registers and didn't benefit so much from a seventeenth.

Java 145
article thumbnail

Web Performance Bookshelf

Rigor

The in-depth explorations are meticulously illustrated and code examples culminate as bulletproof code snippets, applicable to your work right away. Javascript: The Ultimate Beginner’s Guide to Learn JavaScript Programming Step by Step. You only have a few seconds to get compelling content onto the screen. Inclusive Components.

article thumbnail

SQL Server I/O Basics Chapter #2

SQL Server According to Bob

As ​​ the ​​ administrator of a SQL Server 2005 installation, ​​ you will find that ​​ visibility into ​​ the ​​ SQL Server ​​ I/O ​​ subsystem ​​ has been ​​ significantly increased.

Servers 40
article thumbnail

Fundamentals of table expressions, Part 5 – CTEs, logical considerations

SQL Performance

T-SQL supports it starting with SQL Server 2005. What’s different about the design of CTEs compared to derived tables is where in the code these three elements are located. However, there are very few cases in T-SQL where without a terminator the code is ambiguous. The elements are sort of intertwined.

C++ 140