1# Guidelines {#dsppp_guidelines} 2 3If you use dynamic objects in your algorithms and some temporaries need to be allocated, they'll generally be allocated through a `malloc` since the size is not known at build time. It can be an issue: 4 5* Cost of the memory allocation 6* Fragmentations 7 8If you need to allocate those temporaries very often then it may be better to write the algorithm in such a way that the temporary can be reused between different calls. 9 10The function implementing your algorithm would have additional arguments for the temporary matrixes and vectors required in the algorithm. 11 12