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

🐎 🎨 [cib/detail] Replace type_pack_element recursive … #61

Merged
merged 1 commit into from
May 8, 2022

Conversation

krzysztof-jusiak
Copy link
Contributor

…version

Problem:

  • When __type_pack_element builtin is not implemented type_pack_element
    is using recursion which is slow to compile.

Solution:

  • Speed up compilation time by replacing non-recursive version of type_pack_element when
    __type_pack_element is not available by creating inherited list of type
    and id pairs and leverage inheritance to get the Nth type pack
    element.

Copy link
Contributor

@lukevalenty lukevalenty left a comment

Choose a reason for hiding this comment

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

thank you for your pull request @krzysztof-jusiak! 😊

i approved your account to execute the github actions. once the unit tests are passing i will be happy to merge this.

include/cib/detail/type_pack_element.hpp Show resolved Hide resolved
Problem:
- When `__type_pack_element` builtin is not implemented `type_pack_element`
  is using recursion which is slow to compile.

Solution:
- Speed up compilation time by replacing non-recursive version of type_pack_element when
  `__type_pack_element` is not available by creating inherited list of type
  and id pairs and leverage inheritance to get the Nth type pack
  element.
@lukevalenty lukevalenty merged commit 922462a into intel:main May 8, 2022
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.

None yet

3 participants