Permalink
Browse files

Minor adjustment to connection list procedure for performance.

  • Loading branch information...
1 parent 898352b commit 12622970022f6e34d02949d9641b6aa27f022a84 @cederberg committed Apr 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/java/org/rapidcontext/app/proc/ConnectionListProcedure.java
@@ -107,8 +107,8 @@ public Bindings getBindings() {
*/
public Object call(CallContext cx, Bindings bindings)
throws ProcedureException {
- Array res = new Array();
Connection[] connections = Connection.findAll(cx.getStorage());
+ Array res = new Array(connections.length);
for (int i = 0; i < connections.length; i++) {
res.add(connections[i].serialize().copy());
}

0 comments on commit 1262297

Please sign in to comment.