Permalink
Browse files

Preparing new release (0.2.1)

  • Loading branch information...
1 parent 08c3ce4 commit 3adedea93f1d7d96839b3c599e7bcc5599d2e7ee @lemire committed May 21, 2012
Showing with 18 additions and 9 deletions.
  1. +3 −0 CHANGELOG
  2. +14 −8 EWAH/EwahCompressedBitArray.cs
  3. +1 −1 package.sh
View
@@ -1,3 +1,6 @@
+0.2.1 (May 1st 2012)
+ Faster bitmap decoding.
+
0.2.0 (April 20th 2012)
New lightweight serialization infrastructure (Ciaran Jessup).
@@ -675,14 +675,20 @@ public List<int> GetPositions()
for (int j = 0; j < localrlw.NumberOfLiteralWords; ++j)
{
long data = i.Buffer[i.DirtyWords + j];
- for (int c = 0; c < WordInBits; ++c)
- {
- if (((1L << c) & data) != 0)
- {
- v.Add(pos);
- }
- ++pos;
- }
+ //for (int c = 0; c < WordInBits; ++c)
+ //{
+ // if (((1L << c) & data) != 0)
+ // {
+ // v.Add(pos);
+ // }
+ // ++pos;
+ //}
+ while(data!=0) {
+ int ntz = (int) numberOfTrailingZeros((UInt64)data);
+ data ^= (1L << ntz);
+ Add(pos + ntz);
+ }
+ pos += WordInBits;
}
}
while ((v.Count > 0)
View
@@ -1,2 +1,2 @@
name=CSharpEWAH_`date +%Y%m%d`.zip
-cd ..;zip -9 -r -v ./csharpewah/CSharpEWAH.0.2.0-src.zip ./csharpewah/EWAH.csproj ./csharpewah/EWAH.sln ./csharpewah/README ./csharpewah/CHANGELOG ./csharpewah/EWAH.RunTests/EWAH.RunTests.csproj ./csharpewah/EWAH.RunTests/Properties/AssemblyInfo.cs ./csharpewah/EWAH.RunTests/app.config ./csharpewah/EWAH.RunTests/example.cs ./csharpewah/EWAH.Tests/EWAH.Tests.csproj ./csharpewah/EWAH.Tests/EWAHCompressedBitmapTest.cs ./csharpewah/EWAH.Tests/Properties/AssemblyInfo.cs ./csharpewah/EWAH.Tests/app.config ./csharpewah/EWAH/BufferedRunningLengthWord.cs ./csharpewah/EWAH/EWAH.csproj ./csharpewah/EWAH/EwahCompressedBitArray.cs ./csharpewah/EWAH/EwahEnumerator.cs ./csharpewah/EWAH/PlaceHolders.cs ./csharpewah/EWAH/Properties/AssemblyInfo.cs ./csharpewah/EWAH/RunningLengthWord.cs ./csharpewah/EWAH.Tests/EWAHCompressedBitArraySerializerTest.cs ./csharpewah/EWAH/EwahCompressedBitArraySerializer.cs
+cd ..;zip -9 -r -v ./csharpewah/CSharpEWAH.0.2.1-src.zip ./csharpewah/EWAH/EWAH.csproj ./csharpewah/EWAH.sln ./csharpewah/README ./csharpewah/CHANGELOG ./csharpewah/EWAH.RunTests/EWAH.RunTests.csproj ./csharpewah/EWAH.RunTests/Properties/AssemblyInfo.cs ./csharpewah/EWAH.RunTests/app.config ./csharpewah/EWAH.RunTests/example.cs ./csharpewah/EWAH.Tests/EWAH.Tests.csproj ./csharpewah/EWAH.Tests/EWAHCompressedBitmapTest.cs ./csharpewah/EWAH.Tests/Properties/AssemblyInfo.cs ./csharpewah/EWAH.Tests/app.config ./csharpewah/EWAH/BufferedRunningLengthWord.cs ./csharpewah/EWAH/EWAH.csproj ./csharpewah/EWAH/EwahCompressedBitArray.cs ./csharpewah/EWAH/EwahEnumerator.cs ./csharpewah/EWAH/PlaceHolders.cs ./csharpewah/EWAH/Properties/AssemblyInfo.cs ./csharpewah/EWAH/RunningLengthWord.cs ./csharpewah/EWAH.Tests/EWAHCompressedBitArraySerializerTest.cs ./csharpewah/EWAH/EwahCompressedBitArraySerializer.cs

0 comments on commit 3adedea

Please sign in to comment.