8000 Merge `Rename\Style` with `StringStyles` by stloyd · Pull Request #1635 · flow-php/flow · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Merge Rename\Style with StringStyles #1635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 8, 2025

Conversation

stloyd
Copy link
Member
@stloyd stloyd commented May 7, 2025

Change Log

Added

Fixed

  • `StringStyles` related code to work with UTF-8

Changed

  • Merge `Rename\Style` with `StringStyles`

Removed

Deprecated

  • `Flow\ETL\Function\StyleConverter\StringStyles` in favor of `Flow\ETL\Style\StringStyles`

Security


Description

@stloyd stloyd requested a review from norberttech as a code owner May 7, 2025 18:03
@stloyd stloyd force-pushed the rename-each-multi branch from a681747 to 0f594cc Compare May 7, 2025 18:06
Copy link
Contributor
github-actions bot commented May 7, 2025

Flow PHP - Benchmarks

Results of the benchmarks from this PR are compared with the results from 1.x branch.

Extractors
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
| benchmark             | subject           | revs | its | mem_peak        | mode             | rstdev          |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
| CSVExtractorBench     | bench_extract_10k | 1    | 3   | 4.888mb +0.02%  | 618.551ms +1.00% | ±0.87% +155.82% |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 5.468mb -0.02%  | 1.342s +0.40%    | ±0.39% +3.91%   |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.485mb +0.00% | 938.619ms +3.07% | ±0.36% -61.88%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.612mb +0.02%  | 39.209ms -0.18%  | ±1.74% +174.20% |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.587mb +0.02%  | 609.786ms -0.52% | ±0.20% -53.44%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+---------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev        |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+---------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.410mb +0.00% | 69.539ms +0.76% | ±0.87% -1.63% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+---------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 64.055mb +0.00%  | 105.683ms -0.68% | ±0.79% -11.78%  |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.087mb +0.00%  | 96.830ms -0.47%  | ±0.31% -75.98%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 166.569mb +0.00% | 20.898s +1.27%   | ±0.63% +158.40% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 18.145mb +0.00%  | 31.353ms +4.00%  | ±0.33% -90.32%  |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 44.053mb +0.00%  | 462.039ms +0.72% | ±1.06% +73.39%  |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.862mb +0.01%  | 94.132ms +0.37%  | ±0.40% -31.01%  |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.072mb +0.00%  | 3.966ms +27.15%  | ±0.54% -48.94%  |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.428mb +0.00% | 180.608ms -2.09% | ±0.44% -58.90%  |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.148mb +0.00%  | 18.547ms +1.65%  | ±0.46% +31.93%  |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.946mb +0.00%  | 2.136ms +54.39%  | ±2.93% +43.65%  |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.946mb +0.00%  | 2.073ms +51.32%  | ±1.91% +115.51% |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.107mb +0.00%  | 4.985ms +30.10%  | ±1.48% +64.45%  |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.636mb +0.00%  | 16.568ms +3.02%  | ±0.94% -15.09%  |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.636mb +0.00%  | 16.594ms +3.49%  | ±0.93% +65.20%  |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.328mb +0.00%  | 1.894μs +5.57%   | ±2.53% -5.36%   |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.328mb +0.00%  | 0.400μs 0.00%    | ±0.00% 0.00%    |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.546mb +0.00% | 16.696ms +14.28% | ±3.47% +73.15%  |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.613mb +0.00% | 75.085ms +7.91%  | ±0.54% -61.64%  |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.156mb +0.00%  | 1.965ms +60.76%  | ±2.50% +24.67%  |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.527mb +0.00% | 63.066ms +2.78%  | ±0.43% +96.52%  |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.209mb +0.00%  | 4.316ms +19.50%  | ±1.01% +166.43% |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.690mb +0.00%  | 41.033ms +2.67%  | ±1.56% +117.37% |
| RowsBench     
8000
    | bench_sort_by_on_1k        | 2    | 3   | 95.690mb +0.00%  | 41.763ms +3.13%  | ±1.71% -17.72%  |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.690mb +0.00%  | 41.167ms +2.83%  | ±1.70% +254.11% |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.768mb +0.00%  | 8.524ms +4.35%   | ±1.59% +100.39% |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.518mb +0.00%  | 29.914ms +2.32%  | ±0.49% -70.50%  |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.328mb +0.00%  | 14.934μs +12.20% | ±1.38% -58.30%  |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.328mb +0.00%  | 17.400μs +13.03% | ±0.94% +205.93% |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.429mb +0.00% | 183.073ms -4.59% | ±0.81% +13.01%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.518mb +0.00% | 719.978ms -0.06% | ±0.33% -42.03%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.028mb +0.00%  | 374.810ms +1.86% | ±2.34% +32.59%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.806mb +0.01%  | 79.668ms +2.76%  | ±1.65% +48.68%  |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+

Copy link
codecov bot commented May 7, 2025

Codecov Report

Attention: Patch coverage is 84.93151% with 11 lines in your changes missing coverage. Please review.

Project coverage is 83.15%. Comparing base (5111751) to head (8d55296).
Report is 4 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1635      +/-   ##
==========================================
- Coverage   83.18%   83.15%   -0.03%     
==========================================
  Files         706      706              
  Lines       19103    19107       +4     
==========================================
- Hits        15890    15889       -1     
- Misses       3213     3218       +5     
Components Coverage Δ
etl 86.08% <84.93%> (-0.06%) ⬇️
cli 84.59% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 90.11% <ø> (ø)
lib-filesystem 78.02% <ø> (ø)
lib-parquet 84.36% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-snappy 91.16% <ø> (ø)
bridge-filesystem-async-aws 90.38% <ø> (ø)
bridge-filesystem-azure 89.92% <ø> (ø)
bridge-monolog-http 96.38% <ø> (ø)
symfony-http-foundation 74.41% <ø> (ø)
adapter-chartjs 86.45% <ø> (ø)
adapter-csv 89.57% <ø> (ø)
adapter-doctrine 89.73% <ø> (ø)
adapter-elasticsearch 97.19% <ø> (ø)
adapter-google-sheet 80.00% <ø> (ø)
adapter-http 59.15% <ø> (ø)
adapter-json 90.62% <ø> (ø)
adapter-logger 53.84% <ø> (ø)
adapter-meilisearch 97.75% <ø> (ø)
adapter-parquet 80.85% <ø> (ø)
adapter-text 84.44% <ø> (ø)
adapter-xml 83.15% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions bot added size: L and removed size: S labels May 8, 2025
Copy link
Member
@norberttech norberttech left a comment

Choose a reason for hiding this comment

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

Looks good!

@norberttech norberttech merged commit bcbf3d5 into flow-php:1.x May 8, 2025
23 7EC9 checks passed
@stloyd stloyd deleted the rename-each-multi branch May 9, 2025 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0