One point that may or may not be relevant in your case is that the compiler has an easier time optimizing the functor-based approach, at least according to the last benchmarks I know that focused on this, see here.
jjb
3
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Functorial vs "comparator" container interfaces? | 12 | 2432 | April 16, 2020 | |
| How to create a hashtbl using Base? | 10 | 4500 | October 24, 2017 | |
| Examples of using Base Map | 29 | 12300 | February 24, 2018 | |
| Why flambda API differs from original ocaml | 12 | 1091 | May 12, 2022 | |
| Functor trouble -- How to organize functor-heavy code? | 18 | 4185 | December 14, 2021 |