# Checked Data Parallel Arithmetic in C#

C# provides a checked keyword to detect numeric overflow in arithmetic operations, such as addition and subtraction. For example, Advertisements

Read more "Checked Data Parallel Arithmetic in C#"
Skip to content
# Algorithm Performance

## Measure, Question, Improve, Do It Again…

# Checked Data Parallel Arithmetic in C#

# Better C# .Sum() in Many Ways

# Faster JavaScript Sorting Using Typed Arrays

# Code Performance Optimization Resources

# Faster LSD Radix Sort

# Big-O by a Concrete Example

# Standard Parallel Algorithms Have Arrived

C# provides a checked keyword to detect numeric overflow in arithmetic operations, such as addition and subtraction. For example, Advertisements

Read more "Checked Data Parallel Arithmetic in C#"C# Linq provides a convenient way to add up all of the array elements. var arr = new int[] { 5, 7, 16, 3 }; int arrSum = arr.Sum(); This .Sum() supports some of the built-in numeric types: int, long, float, double, and decimal. It provides a nicely consistent and convenient way of adding up […]

Read more "Better C# .Sum() in Many Ways"JavaScript has two kinds of arrays: standard ones and typed ones. These two kinds of arrays have different capabilities. Standard arrays can grow, but typed arrays can not. Standard arrays can hold numbers, strings, objects, etc.. Typed arrays can only hold specific numeric data types: 8-bit, 16-bit, 32-bit and 64 bit unsigned and signed integers, […]

Read more "Faster JavaScript Sorting Using Typed Arrays"In this blog I’ll assemble variety of resources for code performance optimization – from videos to blog posts to StackOverflow topics to university class instructions to books. I’ll update this post from time to time. Videos Books Blogs Gallery of Processor Cache Effects

Read more "Code Performance Optimization Resources"LSD Radix Sort algorithm has been around for a long time with first computer usage in 1950’s and 1960’s to sort punch cards by performing several passes at the stack of cards. It has resurfaced in the last decade with GPUs having hundreds and even thousands of processor with internal local truly random access memories […]

Read more "Faster LSD Radix Sort"Computer Scientists develop algorithms for all kinds of tasks, such as sorting numbers, searching the web for information, showing web pages and interacting with them, and so on – thousands of different algorithms. Even a task such as sorting a bunch of numbers, has more than 20 different algorithms. When you need to choose one […]

Read more "Big-O by a Concrete Example"Parallel algorithms are here! Parallel algorithms are now standard, accessible in VisualStudio 2017 (version 15.8). According to a wonderful Microsoft blog C++17 parallel algorithms are no longer experimental. Algorithms such as sort, for_each, reduce, equal, count, and many more. This give us a standard and portable way to use all of the cores in a multi-core processor. […]

Read more "Standard Parallel Algorithms Have Arrived"