From: Wolfgang M. M. <wol...@us...> - 2004-04-05 11:32:11
|
Update of /cvsroot/exist/eXist-1.0/src/org/dbxml/core/data In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29682/src/org/dbxml/core/data Modified Files: Value.java Log Message: Avoid recalculation of btree node data size on every update. Instead, use a private field for the size and update it only if required. Index: Value.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/dbxml/core/data/Value.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Value.java 20 Feb 2003 09:32:35 -0000 1.4 --- Value.java 5 Apr 2004 11:19:29 -0000 1.5 *************** *** 119,122 **** --- 119,123 ---- public Value trim() { if(pos > 0 || len < data.length) { + System.out.println("trimming value"); final byte[] b = new byte[len]; System.arraycopy(data, pos, b, 0, len); |