cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@sundn.de>
Subject AW: cvs commit: xml-cocoon2/src/org/apache/cocoon Main.java
Date Tue, 16 Oct 2001 14:23:13 GMT
> Berin Loritsch wrote:
> 
> cziegeler@apache.org wrote:
> > 
> > cziegeler    01/10/16 06:04:57
> > 
> >   Modified:    src/org/apache/cocoon Main.java
> >   Log:
> >   Added checking for duplicate urls
> 
> So why the change from Set to List?  If you have to do all this extra
> stuff, the code becomes less readable and maintainable.  The performance
> gain can't be that great.
> 
No, it has nothing to do with performance. And yes, it is less readable,
but it is natural that if you specify more than one url using e.g. a file,
that these urls are processed exactly in the order they were specified
and not in any arbitrary order. And thats exactly why a List is better
than a Set.

Carsten
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message