mitsuba-renderer / drjit

Dr.Jit — A Just-In-Time-Compiler for Differentiable Rendering
BSD 3-Clause "New" or "Revised" License
563 stars 40 forks source link

binary_search: fix unnecessary recompilations #214

Closed merlinND closed 7 months ago

merlinND commented 7 months ago

This PR avoid baking the start_ and end_ ints into the generated binary search code in JIT mode, and switches to a constant loop title (see #213).

njroussel commented 7 months ago

Thank you!

As mentioned in the issue, this will be refactored down the line anyway, but is still a valuable fix for the pre-nanobind versions of Mitsuba/Dr.Jit.