From af90121b47eb316b4527d233aae4361a7f8719f5 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Sun, 2 Jan 2011 18:56:04 +0000 Subject: [PATCH] cache tweak --- core/java/src/net/i2p/data/SessionTag.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/src/net/i2p/data/SessionTag.java b/core/java/src/net/i2p/data/SessionTag.java index 761305d183..c8179771e1 100644 --- a/core/java/src/net/i2p/data/SessionTag.java +++ b/core/java/src/net/i2p/data/SessionTag.java @@ -10,6 +10,7 @@ package net.i2p.data; */ import net.i2p.util.RandomSource; +import net.i2p.util.SimpleByteCache; /** * 32 bytes, usually of random data. @@ -28,7 +29,7 @@ public class SessionTag extends SimpleDataStructure { public SessionTag(boolean create) { super(); if (create) { - _data = new byte[BYTE_LENGTH]; + _data = SimpleByteCache.acquire(BYTE_LENGTH); RandomSource.getInstance().nextBytes(_data); } } -- GitLab