Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qual: Optimisation in load criteria (dol_dir_list) (Dolibarr#28263)
# Qual: Optimisation in load criteria (dol_dir_list) By moving the "$sortcriteria" conditions into the load conditions, the comparison between strings is less frequent. The original test can probably even be removed as it is part of load_*. The only side-effect that I can see is with the hook, but I think in theory there should not be a negative side-effect, only a positive one as this tells the hook to load the data we need without relying on the hook to make the proper interpretation of the searchcriteria.
- Loading branch information