8000 Parallel process features by NEvOlll · Pull Request #2216 · catboost/catboost · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@NEvOlll
Copy link
Contributor
@NEvOlll NEvOlll commented Nov 6, 2022

Before submitting a pull request, please do the following steps:

  1. Read instructions for contributors.
  2. Run ya make in catboost folder to make sure the code builds.
  3. Add tests that test your change.
  4. Run tests using ya make -t -A command.
  5. If you haven't already, complete the CLA.

}
}

thread_local size_t objects_in_column;
Copy link
Member

Choose a reason for hiding this comment

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

Я бы занес эти переменные в структурку или класс и использовал специальные макросы/функции для доступа к нему.
Можно использовать Y_STATIC_THREAD & Y_THREAD из файла util/system/tls.h
или использовать хелпер-функцию FastTlsSingleton<T>() из util/thread/singleton.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0