Closed dmgerman closed 2 months ago
When alias differentiation is true - the cl-loop append creates multiple nodes for the same ID one for each alias - I personally never want to use any cl-functions and wish to avoid it whenever possible - I do not vibe with Common Lisp --
But we have to create the same result - replacing the cl-loop collect would be trivial. But we should use the same logic for code readability alias differentiation is true or not.
If we can replace the cl-loop append easily we can then change cl-loop collect - but we should do this without increasing code complexity.
cl-loop is a macro, and I suspect that it uses more memory than mapcar. See the following code:
I would also avoid append when possible. mutation in general is bad :) and append (in theory) is less efficient than car.