mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
even more default capacities
This commit is contained in:
parent
78a9b8c88e
commit
19e20d9dc9
109 changed files with 144 additions and 144 deletions
|
|
@ -45,7 +45,7 @@ public class IoSession {
|
|||
/**
|
||||
* The currently queued writing data.
|
||||
*/
|
||||
private List<ByteBuffer> writingQueue = new ArrayList<>();
|
||||
private List<ByteBuffer> writingQueue = new ArrayList<>(20);
|
||||
|
||||
/**
|
||||
* The currently queued reading data.
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class CommunicationInfo {
|
|||
/**
|
||||
* The list of blocked players.
|
||||
*/
|
||||
private final List<String> blocked = new ArrayList<>();
|
||||
private final List<String> blocked = new ArrayList<>(20);
|
||||
|
||||
/**
|
||||
* The player's clan name.
|
||||
|
|
@ -105,7 +105,7 @@ public final class CommunicationInfo {
|
|||
if (privateChatSetting != 2) {
|
||||
for (GameServer server : WorldDatabase.getWorlds()) {
|
||||
if (server != null && server.isActive()) {
|
||||
List<String> names = new ArrayList<>();
|
||||
List<String> names = new ArrayList<>(20);
|
||||
for (PlayerSession p : server.getPlayers().values()) {
|
||||
if (p.isActive() && p.getCommunication().contacts.containsKey(player.getUsername())) {
|
||||
if (privateChatSetting == 0 || contacts.containsKey(p.getUsername())) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class SQLTable {
|
|||
* @return The columns.
|
||||
*/
|
||||
public List<SQLColumn> getChanged() {
|
||||
List<SQLColumn> updated = new ArrayList<>();
|
||||
List<SQLColumn> updated = new ArrayList<>(20);
|
||||
for (int i = 0; i < columns.length; i++) {
|
||||
SQLColumn column = columns[i];
|
||||
if (column.isChanged()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue