-
Notifications
You must be signed in to change notification settings - Fork 564
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
Improve build time for YT provider #3930
Conversation
⚪
|
⚪
|
⚪
|
⚪
|
template<bool WithList> | ||
TCoLambda MakeJobLambda(TCoLambda lambda, bool useFlow, TExprContext& ctx) const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему это не в helper?
И это вполне можно убрать в cpp, сделав две специализации
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
реализацию стоит унести в cpp
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 добавив две специализации шаблона
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Аналогично - реализацию унести в yql_transform_sort.cpp добавив две специализации шаблона
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Аналогично, перенес в yql_yt_transformer.cpp
cd3a021
to
b245f00
Compare
⚪ |
⚪ |
⚪
|
⚪
|
48f82f8
to
28775c0
Compare
⚪
|
⚪
|
28775c0
to
5fe31ea
Compare
⚪
|
⚪
|
Fix linking re templates move template to cpp file
5fe31ea
to
4a07866
Compare
⚪
|
⚪
|
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.