Skip to content

[C++] What's the difference between arrow::internal::BitWriter and arrow::internal::FirstTimeBitWriter #38355

@mapleFU

Description

@mapleFU

Describe the usage question you have. Please include as many useful details as possible.

I've find arrow::internal::BitWriter and arrow::internal::FirstTimeBitWriter in our repo. The arrow::internal::FirstTimeBitWriter has some descriptions:

  // Like BitmapWriter, but any bit values *following* the bits written
  // might be clobbered.  It is hence faster than BitmapWriter, and can
  // also avoid false positives with Valgrind.

But actually I didn't know what it actually means. When should I use FirstTimeBitWriter and when should I use BitWriter? Is there any materialize for this?

Component(s)

C++

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions