@tmigot
I just remarked that jtprod! allocates if nlin > 0 and nnln > 0.
I think we should allocate a buffer of size nvar in NLPModelMeta to store an additional Jtv (linear or nonlinear) and then do the sum.
-> https://github.com/JuliaSmoothOptimizers/NLPModels.jl/blob/main/src/nlp/api.jl#L503-L523
cc @frapac