-
Notifications
You must be signed in to change notification settings - Fork 224
Conversation
what do you think @ritchie46 @houqp @Dandandan ? |
Codecov Report
@@ Coverage Diff @@
## main #563 +/- ##
==========================================
+ Coverage 78.92% 78.98% +0.06%
==========================================
Files 382 385 +3
Lines 24276 24704 +428
==========================================
+ Hits 19160 19513 +353
- Misses 5116 5191 +75
Continue to review full report at Codecov.
|
What do you think about a lazy cache? Same to For instance in Polars, almost every operation starts with a null_count check to see if we can use a fast path. |
Doesn't lazy initialization require
shouldn't it start with |
The series has potentially multiple chunks, so we check null_count. But indeed, I could add the branch check for the validity and return 0 if it is missing. Thanks, now it should not matter that much. |
Just for clarity, I think it is a good enhancement. 👍 :) Certainly when iterating lists, this saves quite some compute, I think. |
This reverts commit f435f1f.
Reverted because it triggered a major regression in polars, so more care is needed here. Thanks to @ritchie46 for pointing it out. |
This PR removes the cached
null_count
onBitmap
, making the computation only happen on request.This makes the struct simpler and removes the need to compute the count even if the count will not be used.