Skip to content

vendor fast_float #2722 - #2723

Merged
joocer merged 3 commits into
mainfrom
#2722
Aug 4, 2025
Merged

vendor fast_float #2722#2723
joocer merged 3 commits into
mainfrom
#2722

Conversation

@joocer

@joocer joocer commented Aug 3, 2025

Copy link
Copy Markdown
Member

Thank you for opening a Pull Request!

We appreciate your contribution to Opteryx. Your time and effort make a difference, and we鈥檙e excited to review your changes. To help ensure a smooth review process, please check the following:

Checklist for a Successful PR

  • Start the conversation: If you haven鈥檛 already, raise a bug/feature request or start a discussion. This ensures alignment on the change and approach.
  • Run the tests: Confirm that all tests pass without errors.
  • Maintain code coverage: If you鈥檝e added or modified source code ensure new tests are added to the test suite.
  • Update documentation and tests (if applicable): If your changes impact functionality, make sure the relevant docs and test cases are updated.

Fixes: #2722

Please replace <issue_number_goes_here> with the corresponding issue number.


Thank you for contributing to Opteryx! 馃帀

@github-actions

github-actions Bot commented Aug 3, 2025

Copy link
Copy Markdown

馃摝 Opteryx build version: 0.25.0-beta.1429

@github-actions

github-actions Bot commented Aug 3, 2025

Copy link
Copy Markdown

馃摝 Opteryx build version: 0.25.0-beta.1430

@joocer
joocer requested a review from Copilot August 3, 2025 22:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request vendors the fast_float library (#2722) by adding the complete fast_float C++ library to the third_party directory. The library provides fast floating-point number parsing capabilities.

  • Adds the entire fast_float v8.0.2 library to the third_party directory
  • Includes comprehensive floating-point parsing functionality with support for multiple formats
  • Provides templates for various floating-point types including C++23 float16/float32/float64/bfloat16 types

Reviewed Changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
third_party/fastfloat/fast_float/parse_number.h Main parsing functions and logic for converting strings to floating-point numbers
third_party/fastfloat/fast_float/float_common.h Common type definitions, platform detection, and utility functions
third_party/fastfloat/fast_float/fast_table.h Lookup tables for powers of five used in decimal to binary conversion
third_party/fastfloat/fast_float/fast_float.h Main header file with public API declarations
third_party/fastfloat/fast_float/digit_comparison.h Digit comparison algorithms for precise floating-point conversion
third_party/fastfloat/fast_float/decimal_to_binary.h Core algorithms for converting decimal representations to binary
third_party/fastfloat/fast_float/constexpr_feature_detect.h Feature detection macros for C++ version and compiler capabilities
third_party/fastfloat/fast_float/bigint.h Big integer implementation for high-precision arithmetic

/**
* Special case +inf, -inf, nan, infinity, -infinity.
* The case comparisons could be made much faster given that we know that the
* strings a null-free and fixed.

Copilot AI Aug 3, 2025

Copy link

Choose a reason for hiding this comment

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

There's a grammatical error. The text should read 'strings are null-free and fixed' instead of 'strings a null-free and fixed'.

Suggested change
* strings a null-free and fixed.
* strings are null-free and fixed.

Copilot uses AI. Check for mistakes.
@github-actions

github-actions Bot commented Aug 4, 2025

Copy link
Copy Markdown

馃摝 Opteryx build version: 0.25.0-beta.1431

@sonarqubecloud

sonarqubecloud Bot commented Aug 4, 2025

Copy link
Copy Markdown

@joocer
joocer merged commit 515db9b into main Aug 4, 2025
21 of 22 checks passed
@joocer
joocer deleted the #2722 branch August 4, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[LIB] Would fast_float improve CASTs and parsing

2 participants