Commit 9894f6a5 authored by Simon Marlow's avatar Simon Marlow

comments only

parent d82f5925
......@@ -285,6 +285,8 @@ scavenge_large_srt_bitmap( StgLargeSRT *large_srt )
for (i = 0; i < size / BITS_IN(W_); i++) {
bitmap = large_srt->l.bitmap[i];
// skip zero words: bitmaps can be very sparse, and this helps
// performance a lot in some cases.
if (bitmap != 0) {
for (j = 0; j < BITS_IN(W_); j++) {
if ((bitmap & 1) != 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment