You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I created a PR testing this out, but didn't see much improvement.
I also timed the string comparison functions, and found that they took between 0.6 and 3 milliseconds per replay file. A replay parse takes about 3.5 seconds, so this is a pretty small improvement (0.1% at best)
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?
The text was updated successfully, but these errors were encountered: