7 Jan 2009 09:30
Re: Why not abstract Snowball Java?
Karl Wettin <karl.wettin <at> gmail.com>
2009-01-07 08:30:32 GMT
2009-01-07 08:30:32 GMT
FYI, I recently commited a SnoballProgram.java to Apache Lucene patched with the below. This reflectionless access to the programs saves us quite a bit of resources. It really would make a lot of sense if this patch was applied to the tartarus trunk. But we can keep our own branch over at Lucene, no problem. http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/snowball/src/java/org/tartarus/snowball/SnowballProgram.java karl 18 jan 2008 kl. 18.15 skrev Karl Wettin: > > 18 jan 2008 kl. 13.44 skrev Karl Wettin: > >> How is it that the snowball program is not abstract and has the >> abstract method stem()? > > > It is so much more expesive to do the now required reflection to stem. > > Index: java/org/tartarus/snowball/SnowballProgram.java > =================================================================== > --- java/org/tartarus/snowball/SnowballProgram.java (revision 500) > +++ java/org/tartarus/snowball/SnowballProgram.java (working copy) > <at> <at> -2,13 +2,15 <at> <at> > package org.tartarus.snowball; > import java.lang.reflect.InvocationTargetException; > > -public class SnowballProgram {(Continue reading)
RSS Feed