Skip to content

Conversation

@Yuhta
Copy link
Contributor

@Yuhta Yuhta commented Nov 7, 2025

Summary: When testing filters against in-memory StringView vectors, we observe suboptimal performance when using the testBytes interface. This is because StringView can compare the inline or prefix part in a few instructions before going into the byte-to-byte comparison loop, but testBytes does not use it. Leverage this by adding a testStringView interface. The gain is most significant for an equality filter with a small string (no longer than 12 bytes).

Differential Revision: D85272787

Summary: When testing filters against in-memory `StringView` vectors, we observe suboptimal performance when using the `testBytes` interface.  This is because `StringView` can compare the inline or prefix part in a few instructions before going into the byte-to-byte comparison loop, but `testBytes` does not use it.  Leverage this by adding a `testStringView` interface.  The gain is most significant for an equality filter with a small string (no longer than 12 bytes).

Differential Revision: D85272787
@netlify
Copy link

netlify bot commented Nov 7, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 7dcb42d
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/690e2745b62d3f000873a7c8

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 7, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 7, 2025

@Yuhta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D85272787.

Copy link
Contributor

@kagamiori kagamiori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also need to optimize MultiRange filter?

@Yuhta
Copy link
Contributor Author

Yuhta commented Nov 12, 2025

@kagamiori We definitely could, but the benefit is not as significant, and the chance of multi-range being push down is not high either.

@meta-codesync
Copy link

meta-codesync bot commented Nov 12, 2025

This pull request has been merged in 85f6926.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants