Skip to content

Conversation

@stloyd
Copy link
Member

@stloyd stloyd commented May 7, 2025

Change Log

Added

Fixed

Changed

  • Rework `RenameReplaceEntryStrategy` to allow multiple strings

Removed

Deprecated

Security


Description

@stloyd stloyd requested a review from norberttech as a code owner May 7, 2025 12:05
@stloyd stloyd force-pushed the rename-replace-multi branch from 86d5767 to 2249cbd Compare May 7, 2025 12:09
@norberttech norberttech added this to the 0.16.0 milestone May 7, 2025
@norberttech norberttech moved this from Todo to In Progress in Roadmap May 7, 2025
@norberttech norberttech enabled auto-merge (squash) May 7, 2025 12:11
auto-merge was automatically disabled May 7, 2025 12:13

Head branch was pushed to by a user without write access

@github-actions
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.01%  | 623.025ms +1.66% | ±0.73% -58.16%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 5.468mb +0.03%  | 1.336s -0.57%    | ±0.23% -12.04%  |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.485mb +0.00% | 923.412ms -0.88% | ±1.96% +249.42% |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.612mb +0.01%  | 38.954ms -0.03%  | ±0.25% -19.20%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.586mb +0.01%  | 610.420ms +1.61% | ±0.49% +34.25%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev          |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.409mb +0.00% | 68.324ms -0.80% | ±3.18% +211.54% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 64.055mb +0.00%  | 103.660ms -0.70% | ±0.75% -17.80%  |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.087mb +0.00%  | 95.459ms -1.57%  | ±2.01% +72.09%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 166.569mb +0.00% | 20.617s -0.38%   | ±0.62% +258.82% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 18.144mb +0.00%  | 30.816ms +0.17%  | ±1.56% +149.57% |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev           |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 44.053mb +0.00%  | 458.930ms -1.87% | ±0.78% -16.38%   |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.862mb +0.00%  | 92.684ms -0.97%  | ±1.11% +22.16%   |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.072mb +0.00%  | 3.336ms -3.69%   | ±1.36% -49.27%   |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.428mb +0.00% | 180.353ms -2.54% | ±1.69% +96.52%   |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.148mb +0.00%  | 18.125ms -2.98%  | ±2.08% +316.65%  |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.946mb +0.00%  | 1.533ms +0.76%   | ±1.38% -31.47%   |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.946mb +0.00%  | 1.620ms +2.87%   | ±2.20% -24.54%   |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.107mb +0.00%  | 4.353ms +0.40%   | ±1.54% -14.55%   |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.636mb +0.00%  | 16.088ms -0.89%  | ±1.09% +68.87%   |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.636mb +0.00%  | 16.029ms -2.71%  | ±1.20% +6.86%    |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.327mb +0.00%  | 1.894μs +4.87%   | ±2.53% -1.79%    |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.327mb +0.00%  | 0.200μs -50.00%  | ±0.00% 0.00%     |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.545mb +0.00% | 14.741ms -4.27%  | ±0.19% -91.49%   |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.613mb +0.00% | 70.460ms -0.72%  | ±1.15% +90.33%   |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.156mb +0.00%  | 1.434ms +3.30%   | ±1.50% +39.94%   |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.527mb +0.00% | 63.271ms +1.89%  | ±1.00% +54.21%   |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.208mb +0.00%  | 3.811ms +2.95%   | ±1.08% +14.15%   |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.690mb +0.00%  | 40.412ms -1.32%  | ±0.72% -52.42%   |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.690mb +0.00%  | 40.044ms -1.10%  | ±0.46% +7.19%    |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.690mb +0.00%  | 39.650ms -0.87%  | ±2.04% -11.96%   |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.768mb +0.00%  | 8.234ms +0.57%   | ±3.22% +2143.65% |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.518mb +0.00%  | 29.908ms +1.80%  | ±0.75% -52.93%   |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.327mb +0.00%  | 13.312μs -13.13% | ±0.71% -77.83%   |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.327mb +0.00%  | 15.566μs -3.13%  | ±2.73% +84.85%   |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.429mb +0.00% | 184.497ms -2.32% | ±0.82% +107.85%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.518mb +0.00% | 724.314ms +0.54% | ±0.76% +230.24%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.028mb +0.00%  | 358.986ms -1.94% | ±0.86% +107.01%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.806mb +0.00%  | 77.577ms -1.19%  | ±1.27% +35.07%   |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+

@codecov
Copy link

codecov bot commented May 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.17%. Comparing base (54532d8) to head (3a59046).
Report is 2 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1633      +/-   ##
==========================================
- Coverage   83.18%   83.17%   -0.02%     
==========================================
  Files         706      706              
  Lines       19100    19100              
==========================================
- Hits        15889    15886       -3     
- Misses       3211     3214       +3     
Components Coverage Δ
etl 86.13% <100.00%> (-0.04%) ⬇️
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 90.69% <ø> (ø)
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 7, 2025
@norberttech norberttech merged commit b39bb55 into flow-php:1.x May 7, 2025
22 of 23 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Roadmap May 7, 2025
@stloyd stloyd deleted the rename-replace-multi branch May 7, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants