You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-dev@jakarta.apache.org by "Daniel F. Savarese" <df...@savarese.org> on 2001/07/08 12:46:10 UTC

Re: Code Submission?

>any comments and/or feedback on the MethodSubstitution class I send a few
>weeks ago?

I was hoping other people would have comments.  My personal feeling is
that we don't want to encourage people to use reflection where interfaces
will do the job.  So I would recommend against incorporating it as
a standard part of the software.

I also have a code critique about STA.  Rather than create new
Perl5Compiler and Perl5Matcher instances every time STA.contains(),
STA.substitute(), etc. are called, it is more efficient to create a single
instance of each and store them as member variables.  Also, precompiling
the frequently used patterns is more efficient than recompiling them every
time; you can replace the pattern compiler with a PatternCache to make the
chore easier.  At any rate, given the lack of a programmer's guide, none
of this is obvious.  I'll try to at least cut and paste the old OROMatcher
guide into a rough version covering only org.apache.oro.text.regex this
week.

daniel



Re: Code Submission?

Posted by "Mark F. Murphy" <ma...@tyrell.com>.
At 6:46 AM -0400 7/8/01, Daniel F. Savarese wrote:
>  >any comments and/or feedback on the MethodSubstitution class I send a few
>>weeks ago?
>
>I was hoping other people would have comments.

Sorry.

I've been busy on a deadline for a project!

mark

-- 
---------------------------------------------------------------------------
  Mark F. Murphy, Director Software Development   <ma...@tyrell.com>
  Tyrell Software Corp                            <http://www.tyrell.com>
  PowerPerl(tm), Add Power To Your Webpage!       <http://www.powerperl.com>
---------------------------------------------------------------------------
  Families Against Internet Censorship:        http://www.netfamilies.org/