Skip to content

Excessive ArrayList object creation by TileMultipart #12

@sameer

Description

@sameer

Profiling a server with BluePower and QmunityLib mods installed reveals that QmunityLib's TileMultipart.java is creating nearly 90,000 ArrayList objects per second due to method call uk.co.qmunity.lib.tile.TileMultipart.getParts(), as compared to the second highest: ~5,000 from MinecraftForge's ChunkCoordIntPair class.

uk.co.qmunity.lib.tile.TileMultipart.getLightValue() calls getParts() often

TileMultipart needs an internalized ArrayList of parts that is regenerated upon any change to the HashMap<String, IPart> parts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions