jetty-9 minor optimisations

This commit is contained in:
Greg Wilkins 2012-12-20 10:46:22 +11:00
parent 69b9856998
commit b1bd23e3cb
2 changed files with 6 additions and 6 deletions

View File

@ -119,7 +119,7 @@ public class Trie<V>
{
char c=s.charAt(k);
int index=c>=0&&c<0x7f?__lookup[c]:-1;
int index=__lookup[c&0x7f];
if (index>=0)
{
int idx=t*ROW_SIZE+index;
@ -173,7 +173,7 @@ public class Trie<V>
for(int i=0; i < len; i++)
{
char c=s.charAt(i);
int index=c>=0&&c<0x7f?__lookup[c]:-1;
int index=__lookup[c&0x7f];
if (index>=0)
{
int idx=t*ROW_SIZE+index;
@ -207,7 +207,7 @@ public class Trie<V>
for(int i=0; i < len; i++)
{
byte c=b.get(offset+i);
int index=c>=0&&c<0x7f?__lookup[c]:-1;
int index=__lookup[c&0x7f];
if (index>=0)
{
int idx=t*ROW_SIZE+index;
@ -246,7 +246,7 @@ public class Trie<V>
for(int i=0; i < len; i++)
{
byte c=b[offset+i];
int index=c>=0&&c<0x7f?__lookup[c]:-1;
int index=__lookup[c&0x7f];
if (index>=0)
{
int idx=t*ROW_SIZE+index;
@ -298,7 +298,7 @@ public class Trie<V>
for(int i=0; i < len; i++)
{
byte c=b.get(pos++);
int index=c>=0&&c<0x7f?__lookup[c]:-1;
int index=__lookup[c&0x7f];
if (index>=0)
{
int idx=t*ROW_SIZE+index;

View File

@ -532,7 +532,7 @@ public class StdErrLog extends AbstractLogger
{
long now = System.currentTimeMillis();
int ms=(int)(now%1000);
String d = _dateCache.format(now);
String d = _dateCache.now();
tag(buffer,d,ms,level);
format(buffer,msg,args);
}