----- Original Message -----
From: "Roberto Lo Giacco" <[EMAIL PROTECTED]>
Sent: Wednesday, September 06, 2000 5:24 PM
Subject: Re: New mailet API proposed
> You was wandering about object instantiation and so I submitted code which
> do not instantiates the class to parse and validate the address: I agreed
> with you about the memory/performance issues this could put in system so I
> was proposing to have two more methods which do the job statically. This
way
> we have the MailUtils performances in addition to the MailAddress
> functionality...
> Agree about the clearer approach, but this can strongly impact memory
> performances for a _very_ _frequently_ _called_ mailet which uses the
> MailAddress class to do some work on say two thousands address each time:
> the garbage collector will be strongly impacted by the frequently object
> creation/destruction.
Actually, since MailAddress is part of the API, there should be very little
overhead. My earlier concerns involved if you were parsing the addresses on
each call. With the new mailet API, the matchers and mailets will receive a
MailAddress that was instantiated once... they can call getUser or getHost,
and they simply get copies of one of the two previously instantiated String
objects within MailAddress. So, MailAddress itself should not create much
object overhead. At first I was reluctant to put MailAddress as part of the
API, but now that it's there, I like it and think it fits well. :)
Since there haven't been any other suggestions to the API at this point, I
will do more testing this weekend and commit (I know I keep saying this, but
really I will this weekend!) Once that's in place, hopefully everyone can
test to their hearts content and after some bug fixing, we can release James
1.2 (hopefully later this month).
Serge Knystautas
Loki Technologies
http://www.lokitech.com/
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]