[Tutor] code improvement

Kent Johnson kent37 at tds.net
Fri Sep 25 15:03:29 CEST 2009


On Fri, Sep 25, 2009 at 1:00 AM, Norman Khine <norman at khine.net> wrote:

>>> Is there a better method to write the last bit of the code.

> Apologies for not being clear. I was thinking more  that I may have
> one the too many 'for' loops at the end of the code.
>
> http://paste.lisp.org/display/87659#1

It's only two loops.I'm still not sure what your concern is.

If performance is important and resource.get_resource() is accessing a
database then you might look for a way to get all the addresses in a
single query. But overall it doesn't seem too bad.

Kent


More information about the Tutor mailing list