Counting bytes fast
fastcompression.blogspot.com
Counting bytes fast
1–10 of 50 posts
Re: Counting bytes fast
#2Re: Counting bytes fast
#3Re: Counting bytes fast
#4It seems what you really want is probability for different symbols. Have you considered estimating them by sampling?
Re: Counting bytes fast
#5Modern Intel chips usually do an very good job of "store-to-load forwarding" when the load is the same size or smaller than the store. Although it's testing a slightly different effect, this is a great recent article on the topic: http://blog.stuffedcow.net/2014/01/x86-memory-disambiguation...
Re: Counting bytes fast
#6Re: Counting bytes fast
#7Re: Counting bytes fast
#8I may have misunderstood, but this is covered in more detail in the memory talk I believe: http://youtu.be/bjRDaaGlER8
Re: Counting bytes fast
#9Re: Counting bytes fast
#10So the problem is when the same byte occurs 2 or more times in rapid succession, right? Couldn't you use a temporary variable to count the number of consecutive occurrences of the same byte, and then once you hit a different byte, add the total consecutive count to the appropriate slot? That way you only write to the count table once for each run of identical bytes, and you never write to the same slot of the table t…