snuyanzin opened a new pull request, #30193:
URL: https://github.com/apache/flink/pull/30193

   
   ## What is the purpose of the change
   
   The PR to make use word at a time while indexof/find in string functions
   
   ## Brief change log
   BinayStringData, BinarySegmantUtils
   
   ## Verifying this change
   
   More tests are added
   
   also benchmarks
   
   <details>
   <summary>before</summary>
   
   ```
   Benchmark                                 (firstByte)  (length)  (match)   
Mode  Cnt      Score      Error   Units
   StringSearchBenchmark.instr                      rare        32      end  
thrpt    4  14868.775 ± 1020.736  ops/ms
   StringSearchBenchmark.instr                      rare        32     none  
thrpt    4  39751.588 ± 2182.291  ops/ms
   StringSearchBenchmark.instr                      rare       256      end  
thrpt    4   2069.149 ±  118.262  ops/ms
   StringSearchBenchmark.instr                      rare       256     none  
thrpt    4   6714.957 ±  183.623  ops/ms
   StringSearchBenchmark.instr                      rare      2048      end  
thrpt    4    254.024 ±    2.414  ops/ms
   StringSearchBenchmark.instr                      rare      2048     none  
thrpt    4    875.578 ±   24.118  ops/ms
   StringSearchBenchmark.instr                    common        32      end  
thrpt    4  14463.195 ±  428.156  ops/ms
   StringSearchBenchmark.instr                    common        32     none  
thrpt    4  18828.385 ±  998.998  ops/ms
   StringSearchBenchmark.instr                    common       256      end  
thrpt    4   2018.951 ±   65.521  ops/ms
   StringSearchBenchmark.instr                    common       256     none  
thrpt    4   2272.580 ±   65.167  ops/ms
   StringSearchBenchmark.instr                    common      2048      end  
thrpt    4    240.176 ±   10.232  ops/ms
   StringSearchBenchmark.instr                    common      2048     none  
thrpt    4    280.817 ±    7.404  ops/ms
   StringSearchBenchmark.likeChain                  rare        32      end  
thrpt    4  36311.956 ± 1573.317  ops/ms
   StringSearchBenchmark.likeChain                  rare        32     none  
thrpt    4  56218.174 ± 7657.285  ops/ms
   StringSearchBenchmark.likeChain                  rare       256      end  
thrpt    4  10232.625 ±  281.594  ops/ms
   StringSearchBenchmark.likeChain                  rare       256     none  
thrpt    4  11478.591 ±   78.543  ops/ms
   StringSearchBenchmark.likeChain                  rare      2048      end  
thrpt    4    911.522 ±   19.088  ops/ms
   StringSearchBenchmark.likeChain                  rare      2048     none  
thrpt    4   1541.120 ±   27.021  ops/ms
   StringSearchBenchmark.likeChain                common        32      end  
thrpt    4  29715.300 ±  523.600  ops/ms
   StringSearchBenchmark.likeChain                common        32     none  
thrpt    4  43491.140 ± 1362.984  ops/ms
   StringSearchBenchmark.likeChain                common       256      end  
thrpt    4   5802.570 ±  130.787  ops/ms
   StringSearchBenchmark.likeChain                common       256     none  
thrpt    4   6179.361 ±  293.806  ops/ms
   StringSearchBenchmark.likeChain                common      2048      end  
thrpt    4    787.370 ±   22.714  ops/ms
   StringSearchBenchmark.likeChain                common      2048     none  
thrpt    4    793.077 ±   11.311  ops/ms
   StringSearchBenchmark.likeContains               rare        32      end  
thrpt    4  40913.292 ± 1698.025  ops/ms
   StringSearchBenchmark.likeContains               rare        32     none  
thrpt    4  66855.257 ± 2557.677  ops/ms
   StringSearchBenchmark.likeContains               rare       256      end  
thrpt    4  10302.279 ±  649.475  ops/ms
   StringSearchBenchmark.likeContains               rare       256     none  
thrpt    4  11725.788 ±  378.682  ops/ms
   StringSearchBenchmark.likeContains               rare      2048      end  
thrpt    4   1075.880 ±   39.459  ops/ms
   StringSearchBenchmark.likeContains               rare      2048     none  
thrpt    4   1530.455 ±  191.773  ops/ms
   StringSearchBenchmark.likeContains             common        32      end  
thrpt    4  34039.221 ±  774.528  ops/ms
   StringSearchBenchmark.likeContains             common        32     none  
thrpt    4  47763.347 ± 2521.243  ops/ms
   StringSearchBenchmark.likeContains             common       256      end  
thrpt    4   6003.904 ±  109.207  ops/ms
   StringSearchBenchmark.likeContains             common       256     none  
thrpt    4   6477.011 ±  187.780  ops/ms
   StringSearchBenchmark.likeContains             common      2048      end  
thrpt    4    793.765 ±   26.976  ops/ms
   StringSearchBenchmark.likeContains             common      2048     none  
thrpt    4    820.811 ±   19.769  ops/ms
   StringSearchBenchmark.position                   rare        32      end  
thrpt    4  16267.414 ±  546.354  ops/ms
   StringSearchBenchmark.position                   rare        32     none  
thrpt    4  39695.455 ±  827.341  ops/ms
   StringSearchBenchmark.position                   rare       256      end  
thrpt    4   2104.491 ±   11.281  ops/ms
   StringSearchBenchmark.position                   rare       256     none  
thrpt    4   6748.774 ±   72.387  ops/ms
   StringSearchBenchmark.position                   rare      2048      end  
thrpt    4    242.222 ±   10.973  ops/ms
   StringSearchBenchmark.position                   rare      2048     none  
thrpt    4    875.006 ±   31.789  ops/ms
   StringSearchBenchmark.position                 common        32      end  
thrpt    4  15915.430 ±  433.841  ops/ms
   StringSearchBenchmark.position                 common        32     none  
thrpt    4  18875.476 ±  402.023  ops/ms
   StringSearchBenchmark.position                 common       256      end  
thrpt    4   2036.626 ±   50.219  ops/ms
   StringSearchBenchmark.position                 common       256     none  
thrpt    4   2277.691 ±  100.778  ops/ms
   StringSearchBenchmark.position                 common      2048      end  
thrpt    4    232.121 ±    4.603  ops/ms
   StringSearchBenchmark.position                 common      2048     none  
thrpt    4    282.721 ±    6.334  ops/ms
   StringSearchBenchmark.split                      rare        32      end  
thrpt    4  20991.416 ±  439.969  ops/ms
   StringSearchBenchmark.split                      rare        32     none  
thrpt    4  35997.689 ± 1295.987  ops/ms
   StringSearchBenchmark.split                      rare       256      end  
thrpt    4   7956.890 ±  122.108  ops/ms
   StringSearchBenchmark.split                      rare       256     none  
thrpt    4  10222.713 ±  684.876  ops/ms
   StringSearchBenchmark.split                      rare      2048      end  
thrpt    4   1139.867 ±   40.745  ops/ms
   StringSearchBenchmark.split                      rare      2048     none  
thrpt    4   1513.998 ±   18.333  ops/ms
   StringSearchBenchmark.split                    common        32      end  
thrpt    4  12952.685 ± 1061.603  ops/ms
   StringSearchBenchmark.split                    common        32     none  
thrpt    4  28895.888 ± 1180.739  ops/ms
   StringSearchBenchmark.split                    common       256      end  
thrpt    4   2066.438 ± 3106.631  ops/ms
   StringSearchBenchmark.split                    common       256     none  
thrpt    4   5424.452 ± 2396.423  ops/ms
   StringSearchBenchmark.split                    common      2048      end  
thrpt    4    359.276 ±   28.420  ops/ms
   StringSearchBenchmark.split                    common      2048     none  
thrpt    4    771.515 ±   25.059  ops/ms
   
   ```
   </details>
   
   <details>
   <summary>after</summary>
   Benchmark                                 (firstByte)  (length)  (match)   
Mode  Cnt       Score       Error   Units
   StringSearchBenchmark.instr                      rare        32      end  
thrpt    4   41041.573 ±  1275.999  ops/ms
   StringSearchBenchmark.instr                      rare        32     none  
thrpt    4  130274.872 ±  5679.032  ops/ms
   StringSearchBenchmark.instr                      rare       256      end  
thrpt    4   18513.665 ±   220.968  ops/ms
   StringSearchBenchmark.instr                      rare       256     none  
thrpt    4   41688.807 ±  3195.735  ops/ms
   StringSearchBenchmark.instr                      rare      2048      end  
thrpt    4    3305.252 ±   114.389  ops/ms
   StringSearchBenchmark.instr                      rare      2048     none  
thrpt    4    6436.834 ±   297.868  ops/ms
   StringSearchBenchmark.instr                    common        32      end  
thrpt    4   31841.347 ±  1668.198  ops/ms
   StringSearchBenchmark.instr                    common        32     none  
thrpt    4   46128.951 ±  3521.817  ops/ms
   StringSearchBenchmark.instr                    common       256      end  
thrpt    4    7609.775 ±   210.016  ops/ms
   StringSearchBenchmark.instr                    common       256     none  
thrpt    4    8774.105 ±   889.797  ops/ms
   StringSearchBenchmark.instr                    common      2048      end  
thrpt    4    1163.678 ±    39.797  ops/ms
   StringSearchBenchmark.instr                    common      2048     none  
thrpt    4    1214.407 ±    33.694  ops/ms
   StringSearchBenchmark.likeChain                  rare        32      end  
thrpt    4   42627.074 ± 19675.651  ops/ms
   StringSearchBenchmark.likeChain                  rare        32     none  
thrpt    4   96350.310 ±  5384.136  ops/ms
   StringSearchBenchmark.likeChain                  rare       256      end  
thrpt    4   21484.669 ±  1455.629  ops/ms
   StringSearchBenchmark.likeChain                  rare       256     none  
thrpt    4   36686.473 ±  2095.421  ops/ms
   StringSearchBenchmark.likeChain                  rare      2048      end  
thrpt    4    4788.647 ±   255.385  ops/ms
   StringSearchBenchmark.likeChain                  rare      2048     none  
thrpt    4    6217.894 ±   469.340  ops/ms
   StringSearchBenchmark.likeChain                common        32      end  
thrpt    4   31705.774 ±  1919.397  ops/ms
   StringSearchBenchmark.likeChain                common        32     none  
thrpt    4   56364.922 ±  2404.938  ops/ms
   StringSearchBenchmark.likeChain                common       256      end  
thrpt    4   11446.015 ±   738.817  ops/ms
   StringSearchBenchmark.likeChain                common       256     none  
thrpt    4   13707.860 ±   511.013  ops/ms
   StringSearchBenchmark.likeChain                common      2048      end  
thrpt    4    1834.518 ±   140.748  ops/ms
   StringSearchBenchmark.likeChain                common      2048     none  
thrpt    4    1931.658 ±   143.239  ops/ms
   StringSearchBenchmark.likeContains               rare        32      end  
thrpt    4   53952.566 ±  1349.162  ops/ms
   StringSearchBenchmark.likeContains               rare        32     none  
thrpt    4  118204.414 ±  4702.799  ops/ms
   StringSearchBenchmark.likeContains               rare       256      end  
thrpt    4   26703.136 ±   476.681  ops/ms
   StringSearchBenchmark.likeContains               rare       256     none  
thrpt    4   40492.363 ±  3215.945  ops/ms
   StringSearchBenchmark.likeContains               rare      2048      end  
thrpt    4    5349.203 ±   318.719  ops/ms
   StringSearchBenchmark.likeContains               rare      2048     none  
thrpt    4    6510.140 ±   405.799  ops/ms
   StringSearchBenchmark.likeContains             common        32      end  
thrpt    4   39991.232 ±  2061.501  ops/ms
   StringSearchBenchmark.likeContains             common        32     none  
thrpt    4   55725.716 ±  3281.241  ops/ms
   StringSearchBenchmark.likeContains             common       256      end  
thrpt    4   12360.571 ±  1023.760  ops/ms
   StringSearchBenchmark.likeContains             common       256     none  
thrpt    4   14038.410 ±  1322.344  ops/ms
   StringSearchBenchmark.likeContains             common      2048      end  
thrpt    4    1883.732 ±   103.068  ops/ms
   StringSearchBenchmark.likeContains             common      2048     none  
thrpt    4    1916.250 ±   111.049  ops/ms
   StringSearchBenchmark.position                   rare        32      end  
thrpt    4   44852.095 ±   524.911  ops/ms
   StringSearchBenchmark.position                   rare        32     none  
thrpt    4  120024.059 ±  3182.402  ops/ms
   StringSearchBenchmark.position                   rare       256      end  
thrpt    4   18797.980 ±  1743.197  ops/ms
   StringSearchBenchmark.position                   rare       256     none  
thrpt    4   42012.676 ±   546.497  ops/ms
   StringSearchBenchmark.position                   rare      2048      end  
thrpt    4    3417.175 ±   396.908  ops/ms
   StringSearchBenchmark.position                   rare      2048     none  
thrpt    4    6454.467 ±   445.152  ops/ms
   StringSearchBenchmark.position                 common        32      end  
thrpt    4   31848.956 ±  2510.530  ops/ms
   StringSearchBenchmark.position                 common        32     none  
thrpt    4   45904.495 ±  3562.702  ops/ms
   StringSearchBenchmark.position                 common       256      end  
thrpt    4    8040.317 ±   116.261  ops/ms
   StringSearchBenchmark.position                 common       256     none  
thrpt    4    8593.161 ±   335.809  ops/ms
   StringSearchBenchmark.position                 common      2048      end  
thrpt    4    1219.195 ±    60.215  ops/ms
   StringSearchBenchmark.position                 common      2048     none  
thrpt    4    1216.370 ±    62.530  ops/ms
   StringSearchBenchmark.split                      rare        32      end  
thrpt    4   22946.879 ±   990.778  ops/ms
   StringSearchBenchmark.split                      rare        32     none  
thrpt    4   50386.916 ±  2168.670  ops/ms
   StringSearchBenchmark.split                      rare       256      end  
thrpt    4   15214.121 ±   538.671  ops/ms
   StringSearchBenchmark.split                      rare       256     none  
thrpt    4   25522.364 ±  1371.359  ops/ms
   StringSearchBenchmark.split                      rare      2048      end  
thrpt    4    3927.967 ±   213.572  ops/ms
   StringSearchBenchmark.split                      rare      2048     none  
thrpt    4    5515.675 ±   198.010  ops/ms
   StringSearchBenchmark.split                    common        32      end  
thrpt    4   21154.003 ±  2373.751  ops/ms
   StringSearchBenchmark.split                    common        32     none  
thrpt    4   33327.399 ±  1791.981  ops/ms
   StringSearchBenchmark.split                    common       256      end  
thrpt    4    9224.341 ±   264.422  ops/ms
   StringSearchBenchmark.split                    common       256     none  
thrpt    4   11958.855 ±   481.607  ops/ms
   StringSearchBenchmark.split                    common      2048      end  
thrpt    4    1853.943 ±    77.557  ops/ms
   StringSearchBenchmark.split                    common      2048     none  
thrpt    4    1968.876 ±    20.169  ops/ms
   
   </details>
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): ( no)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (no)
     - The serializers: (no)
     - The runtime per-record code paths (performance sensitive): (yes)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
     - The S3 file system connector: (no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (no)
     - If yes, how is the feature documented? (not applicable)
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   <!--
   If generative AI tooling has been used in the process of authoring this PR, 
please
   change the checkbox below to `[X]` and replace the placeholder in the 
"Generated-by"
   line with the tool name and version. Otherwise remove the "Generated-by" 
line.
   See the ASF Generative Tooling Guidance for details:
   https://www.apache.org/legal/generative-tooling.html
   
   You are responsible for the quality and correctness of every change in this 
PR
   regardless of the tooling used. Low-effort AI-generated PRs will be closed. 
See
   AGENTS.md for the full guidance.
   -->
   
   - [ ] Yes (please specify the tool below)
   
   Generated-by: [Tool Name and Version]
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to