Skip to content
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

Improve build time for YT provider #3930

Merged
merged 1 commit into from
May 24, 2024

Conversation

alephonea
Copy link
Collaborator

yql_yt_physical_optimize.cpp took ~150s to compile, much longer than all other compilation units.
Break it down into multiple compile units to compile them in parallel.

@alephonea alephonea requested a review from a team as a code owner April 19, 2024 12:05
Copy link

github-actions bot commented Apr 19, 2024

2024-04-19 12:18:17 UTC Pre-commit check for 27dd063 has started.
2024-04-19 12:18:19 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-04-19 12:22:01 UTC Build successful.

Copy link

github-actions bot commented Apr 19, 2024

2024-04-19 12:35:17 UTC Pre-commit check for 27dd063 has started.
2024-04-19 12:35:19 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-19 12:39:25 UTC Build successful.
2024-04-19 12:41:15 UTC Tests are running...
🔴 2024-04-19 13:01:51 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
3210 2918 0 280 1 11

Copy link

github-actions bot commented Apr 19, 2024

2024-04-19 12:45:05 UTC Pre-commit check for 27dd063 has started.
2024-04-19 12:45:07 UTC Build linux-x86_64-release-asan is running...
🟢 2024-04-19 12:48:38 UTC Build successful.
2024-04-19 12:50:28 UTC Tests are running...
🔴 2024-04-19 13:14:56 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
3003 2774 0 195 22 12

Copy link

github-actions bot commented Apr 19, 2024

2024-04-19 15:58:01 UTC Pre-commit check for 79673d8 has started.
2024-04-19 15:58:03 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-04-19 16:02:01 UTC Build successful.

Copy link

github-actions bot commented Apr 19, 2024

2024-04-19 15:58:30 UTC Pre-commit check for 79673d8 has started.
2024-04-19 15:58:32 UTC Build linux-x86_64-release-asan is running...
🟢 2024-04-19 16:02:03 UTC Build successful.
2024-04-19 16:03:48 UTC Tests are running...
🔴 2024-04-19 17:47:08 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
9510 9355 0 41 98 16

Copy link

github-actions bot commented Apr 19, 2024

2024-04-19 16:00:10 UTC Pre-commit check for 79673d8 has started.
2024-04-19 16:00:13 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-19 16:03:42 UTC Build successful.
2024-04-19 16:05:26 UTC Tests are running...
🔴 2024-04-19 17:52:06 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
67786 54665 0 4 13101 16

resetius
resetius previously approved these changes Apr 26, 2024
Comment on lines 141 to 142
template<bool WithList>
TCoLambda MakeJobLambda(TCoLambda lambda, bool useFlow, TExprContext& ctx) const
Copy link
Member

Choose a reason for hiding this comment

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

Почему это не в helper?
И это вполне можно убрать в cpp, сделав две специализации

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Перенес в yql_yt_transformer_lambda.cpp две специализации.

}


TMaybe<bool> CanFuseLambdas(const TCoLambda& innerLambda, const TCoLambda& outerLambda, TExprContext& ctx) const {
Copy link
Member

Choose a reason for hiding this comment

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

реализацию стоит унести в cpp

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

}

template <typename TLMapType>
TMaybeNode<TExprBase> LMap(TExprBase node, TExprContext& ctx) const {
Copy link
Member

Choose a reason for hiding this comment

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

реализацию стоит унести в yql_transform_map_reduce.cpp добавив две специализации шаблона

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Перенес в yql_yt_transformer.cpp
Оставил шаблонную функцию без специализаций, поскольку она вызывается только из того же .cpp файла

}

template<bool IsTop>
TMaybeNode<TExprBase> Sort(TExprBase node, TExprContext& ctx) const {
Copy link
Member

Choose a reason for hiding this comment

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

Аналогично - реализацию унести в yql_transform_sort.cpp добавив две специализации шаблона

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Аналогично, перенес в yql_yt_transformer.cpp

Copy link

github-actions bot commented May 13, 2024

2024-05-13 22:42:39 UTC Pre-commit check for 2fb6976 has started.
2024-05-13 22:42:42 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-05-13 22:46:30 UTC Build successful.

Copy link

github-actions bot commented May 13, 2024

2024-05-13 22:43:03 UTC Pre-commit check for 2fb6976 has started.
2024-05-13 22:43:05 UTC Build linux-x86_64-release-asan is running...
🟢 2024-05-13 22:46:41 UTC Build successful.
2024-05-13 22:48:37 UTC Tests are running...
🔴 2024-05-13 23:28:29 UTC Test run completed, no test results found for commit b245f00. Please check build logs.
2024-05-13 23:28:32 UTC Check cancelled

Copy link

github-actions bot commented May 13, 2024

2024-05-13 22:45:10 UTC Pre-commit check for 2fb6976 has started.
2024-05-13 22:45:13 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-05-13 22:48:56 UTC Build successful.
2024-05-13 22:50:46 UTC Tests are running...
🔴 2024-05-13 23:28:29 UTC Test run completed, no test results found for commit b245f00. Please check build logs.
2024-05-13 23:28:32 UTC Check cancelled

Copy link

github-actions bot commented May 13, 2024

2024-05-13 23:29:59 UTC Pre-commit check for 1703c4b has started.
2024-05-13 23:30:00 UTC Build linux-x86_64-release-asan is running...
🟢 2024-05-13 23:33:02 UTC Build successful.
2024-05-13 23:34:52 UTC Tests are running...
🔴 2024-05-14 01:24:00 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
9617 9530 0 32 44 11

Copy link

github-actions bot commented May 13, 2024

2024-05-13 23:32:03 UTC Pre-commit check for 1703c4b has started.
2024-05-13 23:32:05 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-05-13 23:35:54 UTC Build successful.

Copy link

github-actions bot commented May 13, 2024

2024-05-13 23:32:18 UTC Pre-commit check for 1703c4b has started.
2024-05-13 23:32:20 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-05-13 23:36:13 UTC Build successful.
2024-05-13 23:38:09 UTC Tests are running...
🟢 2024-05-14 01:32:40 UTC Tests successful.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
68275 55078 0 0 13188 9

Copy link

github-actions bot commented May 15, 2024

2024-05-15 21:02:55 UTC Pre-commit check for d446e3f has started.
2024-05-15 21:02:58 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-05-15 21:06:52 UTC Build successful.

Copy link

github-actions bot commented May 15, 2024

2024-05-15 21:02:56 UTC Pre-commit check for d446e3f has started.
2024-05-15 21:02:58 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-05-15 21:06:37 UTC Build successful.
2024-05-15 21:08:29 UTC Tests are running...
🔴 2024-05-15 23:02:36 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
68589 55920 0 4 12657 8

Copy link

github-actions bot commented May 15, 2024

2024-05-15 21:02:58 UTC Pre-commit check for d446e3f has started.
2024-05-15 21:03:01 UTC Build linux-x86_64-release-asan is running...
🟢 2024-05-15 21:06:26 UTC Build successful.
2024-05-15 21:08:25 UTC Tests are running...
🔴 2024-05-15 22:53:49 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
9926 9848 0 27 43 8

rvu1024
rvu1024 previously approved these changes May 17, 2024
Copy link

github-actions bot commented May 21, 2024

2024-05-21 21:31:57 UTC Pre-commit check for 35e92fa has started.
2024-05-21 21:32:00 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-05-21 21:35:43 UTC Build successful.

Copy link

github-actions bot commented May 21, 2024

2024-05-21 21:32:01 UTC Pre-commit check for 35e92fa has started.
2024-05-21 21:32:03 UTC Build linux-x86_64-release-asan is running...
🟢 2024-05-21 21:35:33 UTC Build successful.
2024-05-21 21:37:27 UTC Tests are running...
🔴 2024-05-21 23:31:10 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
9992 9909 0 26 46 11

Copy link

github-actions bot commented May 21, 2024

2024-05-21 21:32:05 UTC Pre-commit check for 35e92fa has started.
2024-05-21 21:32:07 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-05-21 21:35:48 UTC Build successful.
2024-05-21 21:37:36 UTC Tests are running...
🔴 2024-05-21 23:28:48 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
68799 56099 0 1 12692 7

Fix linking re templates

move template to cpp file
Copy link

github-actions bot commented May 22, 2024

2024-05-22 18:37:33 UTC Pre-commit check for c560e47 has started.
2024-05-22 18:37:35 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-05-22 18:40:47 UTC Build successful.

Copy link

github-actions bot commented May 22, 2024

2024-05-22 18:37:41 UTC Pre-commit check for c560e47 has started.
2024-05-22 18:37:43 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-05-22 18:40:47 UTC Build successful.
2024-05-22 18:42:35 UTC Tests are running...
🔴 2024-05-22 20:33:27 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
68825 56123 0 1 12695 6

Copy link

github-actions bot commented May 22, 2024

2024-05-22 18:37:53 UTC Pre-commit check for c560e47 has started.
2024-05-22 18:37:56 UTC Build linux-x86_64-release-asan is running...
🟢 2024-05-22 18:40:34 UTC Build successful.
2024-05-22 18:42:20 UTC Tests are running...
🔴 2024-05-22 20:37:37 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
9999 9903 0 32 50 14

@alephonea alephonea merged commit 6569863 into ydb-platform:main May 24, 2024
3 of 5 checks passed
@StekPerepolnen StekPerepolnen mentioned this pull request May 31, 2024
@niksaveliev niksaveliev mentioned this pull request Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants