Uh oh!
There was an error while loading. Please reload this page.
TEZ-4365: Use Regex Pattern to Parse DAG ID String - #172
Conversation
tez-yetus
commented
Dec 28, 2021
💔 -1 overall
This message was automatically generated. |
tez-yetus
commented
Dec 29, 2021
🎊 +1 overall
This message was automatically generated. |
jteagles
commented
Dec 29, 2021
@belugabehr, can you go back and run the performance tests in https://issues.apache.org/jira/browse/TEZ-1526. It will be interesting to see how this performs after removing the performance optimizations. |
belugabehr
commented
Dec 30, 2021
@jteagles I create a small driver with JMH: Quite a bit slower, but still an impressive 1,809,324 string per second on my dated hardware. Using regex provides for fewer lines of code and makes it more readable. But your call. If you're not accepting of it, consider the unit tests update. |
jteagles
commented
Dec 30, 2021
This code optimization was critically import as the the event thread spends a significant time parsing task/attempt ids to dispatch messages. I would hate to lose that. I can appreciate the simplicity of REGEX though. Perhaps the regex can be used to validate the manual parsing, as the manual parsing is more error prone. And improved testing is welcome. This patch inspired a YARN ID parsing improvement that made significant improvements there as well. I've linked the jira for reference in the original. https://issues.apache.org/jira/browse/YARN-6768 |
No description provided.