BlogsCloudflareASCII Character Manipulation for Performance

ASCII Character Manipulation for Performance

ASCII Character Manipulation for Performance

1
posts
2015

Cloudflare leverages low-level ASCII character manipulation techniques, such as bitwise AND operations, to optimize performance in high-throughput scenarios like DNS packet filtering. This involves understanding character set limitations and implementing efficient comparison algorithms.

2015

The oldest trick in the ASCII book

4/12/2015

This post introduces a technique for uppercasing ASCII text using a bitwise AND operation (`AND 0xDF`). It explains the ASCII table structure, the effect of the operation on different character sets, and demonstrates its application in a C function for fast, case-insensitive string comparison. The post highlights the relevance of such low-level optimizations for high-volume network processing.