qi icon indicating copy to clipboard operation
qi copied to clipboard

`ground` could be compiled to `(lambda _ (values))`, which might be more efficient

Open benknoble opened this issue 1 year ago • 1 comments

The compiler branch currently compiles through a number of other forms and ends up with (lambda args (apply values (append))), which seems like it might be inefficient (really we'd need to see how the CS compiler handled that).

benknoble avatar Dec 18 '23 16:12 benknoble

I tried this in compiler explorer (courtesy of @jryans), and doesn't look like CS optimizes it (looking at cp0).

countvajhula avatar Dec 18 '23 23:12 countvajhula