directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Slocinski <>
Subject Re: [mina] Filter priority
Date Mon, 07 Feb 2005 07:12:01 GMT
On Mon, 7 Feb 2005 13:19:14 +0900, Trustin Lee <> wrote:
> Hi,
> I modified the internal algorithm which manages filters, and now the
> range of filter priority is limited from 0 to 99.  The new algorithm
> stores filter entries in an array, and thus evaluating all filters in
> the chain will iterate the internal array 100 times every time an
> event is fired.  I'm not sure this will be a performance hit.  WDYT?
> And, I think the priority range 0~99 is really big.  We'll usually add
> not more than 3~5 filters IMHO.  So we need to decide a proper value.
> How about 0~9?  Please note that the priority numbers cannot be
> duplicate because the evaluation order gets ambiguous.

maybe it'll be reasonable to pass this number in a constructor and
allow protocol developer to adjust it to her needs?

best regards,

View raw message