-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specialized function dispatchers for very simple functions (#944)
Nanobind previously distinguished between a "complex" and a "simple" function dispatcher. This PR adds variants of the simple dispatcher that further specializes to 0 and 1-argument functions without overloads. One common class of functions that benefits are property getters. The speedup is pretty small (~2%), but we will take it :-).
- Loading branch information
Showing
1 changed file
with
116 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters