some microtuning

This commit is contained in:
Arndt Brenschede 2019-07-20 10:10:51 +02:00
parent d963814d78
commit 2213d4f7fc
9 changed files with 278 additions and 149 deletions

View file

@ -502,7 +502,7 @@ public final class MicroCache2 extends MicroCache
}
if ( pass == 3 )
{
return bc.getEncodedLength();
return bc.closeAndGetEncodedLength();
}
}
}

View file

@ -137,7 +137,7 @@ public final class TagValueCoder
}
byte[] res;
int len = ctx.getEncodedLength();
int len = ctx.closeAndGetEncodedLength();
if ( validator == null )
{
res = new byte[len];