In functions like _stump, the sub-functions _compute_diagonal and core._shift_insert_at_index may be called a lot. Therefore, we may gain some (small) performance improvement by adding @njit(inline='always') to those (and other) functions and possibly reduce the overhead cost of calling a function repeatedly. See more here.
In functions like
_stump, the sub-functions_compute_diagonalandcore._shift_insert_at_indexmay be called a lot. Therefore, we may gain some (small) performance improvement by adding@njit(inline='always')to those (and other) functions and possibly reduce the overhead cost of calling a function repeatedly. See more here.