csharptest / CSharpTest.Net.Collections

BPlusTree and other collections moved from http://code.google.com/p/csharptest-net
107 stars 48 forks source link

performance tweak on crc32 calculations #1

Closed Aztherion closed 10 years ago

Aztherion commented 10 years ago

Made a few adjustments to the Crc32 class that almost doubles the performance on normal Add() operations. Also replaced the runtime calculated polynomial table with a pre-calculated lookup table.

csharptest commented 10 years ago

Thanks for the optimization, indeed the use of the local field in Add(byte[]) is an improvement. I was rather suprized to see it was measurable ;) I'm going to keep the computed polynomial table rather than the pre-computed one as this one-time cost is just not worth micro-optimizing IMHO.

The change is merged on /dev and will be integrated in the next package build.

You can pick up a nuget package from (uses a self-signed certificate): (https) teamcity (dot) csharptest (dot) net/guestAuth/app/nuget/v1/FeedService.svc/