[jboss-dev-forums] [JBoss Microcontainer Development POJO Server] - Re: integration with the Papaki annotation indexer/repositor

david.lloyd@jboss.com do-not-reply at jboss.com
Tue Oct 20 10:11:33 EDT 2009


So - we are taking a small project, adding dependencies and making it more complex?

Papaki should actually be more minimal than it is.  The indexes should be built by directly examining the file.  Think about it - possibly every class in every JAR that is ever deployed may end up being read by this.  There is absolutely no way that reflection is going to cut it performance-wise, nor do I think Javassist will suffice.

The two key requirements for Papaki are: speed of execution and compactness/efficiency of indexing.  If it doesn't hit both of these out of the park, we're going to be taking a step backwards in terms of performance.  I don't see why it's anything more than a highly string-optimized map implementation (patricia trie perhaps) plus a tuned byte scanner.

Adding dependencies is a bad idea.  Projects should as a rule have the minimum number of runtime dependencies possible.  Having lots of dependencies just makes it harder to refactor later.  If you have a large web of dependencies between a set of projects, that's a big indicator that they ought to be one big project anyway, or at least split up differently.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261273#4261273

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261273



More information about the jboss-dev-forums mailing list