Skip to content

Conversation

@stloyd
Copy link
Member

@stloyd stloyd commented May 4, 2025

Change Log

Added

  • Added new `Style::ASCII`, `Style::CAMEL`, `Style::TITLE` & `Style::SLUG`

Fixed

Changed

  • Rework `rename_transliterate` to use Symfony String

Removed

Deprecated

Security


Description

Symfony String already has built-in fallback functionality when the Intl extension is unavailable.

@stloyd stloyd requested a review from norberttech as a code owner May 4, 2025 14:48
@github-actions
Copy link
Contributor

github-actions bot commented May 4, 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.890mb -0.03%  | 612.297ms -0.47% | ±2.06% +80.55% |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 5.465mb +0.09%  | 1.327s -1.66%    | ±0.46% +38.29% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.486mb -0.00% | 926.259ms +0.71% | ±0.03% -94.56% |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.614mb -0.03%  | 39.127ms +1.44%  | ±0.40% -38.02% |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.588mb -0.03%  | 621.377ms +2.95% | ±1.35% +82.59% |
+-----------------------+-------------------+------+-----+-----------------+------------------+----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev          |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.411mb -0.00% | 69.090ms -1.77% | ±0.60% +149.65% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev         |
+--------------------+----------------+------+-----+------------------+------------------+----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 64.057mb -0.00%  | 104.849ms -1.02% | ±0.68% -59.06% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.089mb -0.00%  | 94.414ms -1.33%  | ±0.33% -54.16% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 166.570mb +0.00% | 20.788s +0.60%   | ±0.01% -98.89% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 18.146mb -0.01%  | 31.313ms +2.58%  | ±0.78% -37.98% |
+--------------------+----------------+------+-----+------------------+------------------+----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.073mb -0.00%  | 3.793ms +20.41%  | ±2.42% +870.57% |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.430mb -0.00% | 180.963ms +0.55% | ±0.60% -4.75%   |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.150mb -0.00%  | 18.484ms +0.45%  | ±0.69% -28.38%  |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.948mb -0.00%  | 1.781ms +15.64%  | ±0.68% -4.95%   |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.948mb -0.00%  | 1.678ms +13.24%  | ±2.35% -31.07%  |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.109mb -0.00%  | 4.240ms +9.17%   | ±1.89% +1.83%   |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.638mb -0.00%  | 16.322ms +1.64%  | ±0.38% -59.22%  |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.638mb -0.00%  | 16.414ms +2.47%  | ±0.75% +130.50% |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.329mb -0.00%  | 1.894μs +11.81%  | ±2.53% -10.71%  |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.329mb -0.00%  | 0.300μs -25.00%  | ±0.00% -100.00% |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.547mb -0.00% | 15.160ms +4.49%  | ±1.54% +67.68%  |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.614mb -0.00% | 73.903ms +3.68%  | ±2.70% +92.48%  |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.157mb -0.00%  | 1.862ms +36.93%  | ±1.80% +27.19%  |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.529mb -0.00% | 64.112ms +2.92%  | ±0.11% -49.67%  |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.210mb -0.00%  | 4.170ms +10.70%  | ±3.37% +136.36% |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.691mb -0.00%  | 39.678ms -2.51%  | ±0.92% -38.76%  |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.692mb -0.00%  | 40.386ms +1.71%  | ±0.36% -45.97%  |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.691mb -0.00%  | 40.411ms +1.32%  | ±2.57% +268.09% |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.769mb -0.00%  | 8.420ms +1.50%   | ±1.70% +82.05%  |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.519mb -0.00%  | 29.527ms +0.94%  | ±1.23% -30.24%  |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.329mb -0.00%  | 14.376μs +9.79%  | ±1.32% +266.36% |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.329mb -0.00%  | 15.907μs +3.18%  | ±1.96% -37.89%  |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.431mb -0.00% | 185.691ms +1.22% | ±0.79% +182.99% |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 44.054mb -0.00%  | 465.783ms +2.26% | ±1.48% +124.23% |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.864mb -0.01%  | 94.698ms +0.56%  | ±0.73% -53.28%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.520mb -0.00% | 719.859ms +0.76% | ±0.17% -85.51%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.030mb -0.00%  | 367.031ms -1.42% | ±0.05% -90.39%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.808mb -0.01%  | 77.725ms -0.88%  | ±0.38% -76.89%  |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@codecov
Copy link

codecov bot commented May 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.19%. Comparing base (66e5766) to head (39928b7).
Report is 2 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1617      +/-   ##
==========================================
+ Coverage   83.18%   83.19%   +0.01%     
==========================================
  Files         707      706       -1     
  Lines       19100    19100              
==========================================
+ Hits        15888    15890       +2     
+ Misses       3212     3210       -2     
Components Coverage Δ
etl 86.16% <100.00%> (+0.01%) ⬆️
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% <ø> (+0.46%) ⬆️
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: S and removed size: XS labels May 4, 2025
@stloyd stloyd force-pushed the transliterate-sf-string branch from 596a07d to 39928b7 Compare May 4, 2025 15:15
@norberttech norberttech enabled auto-merge (squash) May 4, 2025 19:14
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 great! 🤩

@norberttech norberttech merged commit 2931ca3 into flow-php:1.x May 4, 2025
23 checks passed
@stloyd stloyd deleted the transliterate-sf-string branch May 5, 2025 06:16
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