You almost never have to worry about the efficiency of (second x) (cadr x) and (car (cdr x)). There are always bigger fish to fry than that.
On Apr 6, 2015, at 3:37 AM, Lux <glsdes...@gmail.com> wrote: > It is more efficient (second myList) or (car (cdr myList)) if it is any > difference at all? > What are the principles I can keep in mind when I try to make code as > efficient as possible? Some basic functions are implemented in C in the > language. They are necessarily more fast to simple abstractions/helpers (in > Racket) based on them that can be reimplemented easily without requiring > libraries like racket/list in addition lo save memory and load times? > I know readable code is generally better, but how can I save some fractions > of seconds here and there changing my constructs? > > Lux > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.