SpeciaLUT

Runtime choosing of template specializations using compile-time lookup-tables. Compile all states of a template function, but execute the optimal one at runtime. (by j8asic)

SpeciaLUT Alternatives

Similar projects and alternatives to SpeciaLUT

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better SpeciaLUT alternative or higher similarity.

SpeciaLUT reviews and mentions

Posts with mentions or reviews of SpeciaLUT. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-02.
  • C++ Show and Tell - December 2022
    8 projects | /r/cpp | 2 Dec 2022
    I made SpeciaLUT to convert bool/enum runtime tests to compile-time conditionals — by compiling all branching combinations in hot functions and saving them in a lookup-table, so the optimal one can be called at runtime. Reason: as an HPC consultant I encountered many codes that grew without good architecture, in which features would just be added and branching would propagate through all levels. This yields 10% to 50% performance increase in such codes.
  • Runtime-constant propagation and branching optimization strategy
    2 projects | /r/Compilers | 6 Feb 2022
    I have implemented this as a C++ library, where you extract const states as template parameters, and the library compiles all specializations and allows you to choose the optimal one at runtime.
  • Runtime calling of a template specialisation using compile-time LUTs
    1 project | /r/cpp | 3 Feb 2022
    So here's my C++20 implementation of the above: SpeciaLUT
  • A note from our sponsor - WorkOS
    workos.com | 26 Apr 2024
    The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →

Stats

Basic SpeciaLUT repo stats
3
26
3.4
6 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com