Skip to content

Performance Enhancement Int to Int Comparison. #18

@STRATZ-Ken

Description

@STRATZ-Ken

STRATZ_Ken -
@howard You should change

https://github.com/odota/parser/blob/master/src/main/java/opendota/Parse.java#L726

with @OnEntityCreated. When CDOTA_NPC_Observer_Ward is created, store the DtClass().getClassId() in a variable. Then you can compare on ProcessEntity with int == int comparison. I just did this on my side on a lot of things monitored, lowered CPU across the board by 8%.

Howard - Today at 6:06 PM
Thanks, could you log an issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions