Remove 2005 Remove Code Remove Efficiency Remove Performance
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

String Aggregation Over the Years in SQL Server

SQL Performance

Since SQL Server 2005, the trick of using FOR XML PATH to denormalize strings and combine them into a single (usually comma-separated) list has been very popular. On more than one occasion, I had to double-check the code was even mine. In the SQL Server 2005 days, I would have offered this solution: SELECT DISTINCT UserID , Bands =. (

Servers 82
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

Additional T-SQL Improvements in SQL Server 2022

SQL Performance

If you’ve been writing and optimizing T-SQL code for a while, you’re probably well aware of the many complexities involved with NULL handling. If you’re using T-SQL to compute percentiles as part of your work, these functions should be familiar to you since they’ve been supported in SQL Server 2005 and later. The Distinct Predicate.

Servers 142
article thumbnail

How to Avoid Vendor Lock In

IO River

‍You might keep introducing CDN-level features specific to CloudFront that significantly improve your application's performance. This means that if you wish to switch CDN, you’d have to rewrite a vast amount of code to support a new API.‍‍Sign Akamai tried to convince many users to use this new framework.

Lambda 52
article thumbnail

Simple Parameterization and Trivial Plans — Part 1

SQL Performance

Both target performance and efficiency for workloads frequently submitting simple statements. Still, you should write code with both close to the front of your mind. For legacy applications or other third-party code that cannot be easily changed, explicit parameterization may not always be possible. Shell Plans.

Cache 61
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

How to Avoid Vendor Lock In

IO River

You might keep introducing CDN-level features specific to CloudFront that significantly improve your application's performance. However, the IaC code significantly changes across each CDN provider.For example, the IaC code to provision a CloudFlare CDN and a CloudFront CDN is different in any IaC provider.

Lambda 52