Comment Comment by anonymoushn For a solution that contains this stuff const u8 *file_lo; file_lo = (const u8*)mmap(0,250000000ull,PROT_READ,MAP_PRIVATE|MAP_POPULATE,0,0); const u8 *file_hi = file_lo + 250000000ull; u64 count = 0; while (file_lo < file_hi) { if (*file_lo == 127) { ++count; } file_lo++; } I got a bit under 54ms. The solution in the article runs in a bit under 16ms. parent anonymoushn 2 years ago