{"action":"created","issue":{"url":"https://api.github.com/repos/Esteemed-Innovation/Flaxbeards-Steam-Power/issues/353","labels_url":"https://api.github.com/repos/Esteemed-Innovation/Flaxbeards-Steam-Power/issues/353/labels{/name}","comments_url":"https://api.github.com/repos/Esteemed-Innovation/Flaxbeards-Steam-Power/issues/353/comments","events_url":"https://api.github.com/repos/Esteemed-Innovation/Flaxbeards-Steam-Power/issues/353/events","html_url":"https://github.com/Esteemed-Innovation/Flaxbeards-Steam-Power/issues/353","id":124434084,"number":353,"title":"Remove calls to ReflectionHelper from high traffic code","user":{"login":"LemADEC","id":4776032,"avatar_url":"https://avatars.githubusercontent.com/u/4776032?v=3","gravatar_id":"","url":"https://api.github.com/users/LemADEC","html_url":"https://github.com/LemADEC","followers_url":"https://api.github.com/users/LemADEC/followers","following_url":"https://api.github.com/users/LemADEC/following{/other_user}","gists_url":"https://api.github.com/users/LemADEC/gists{/gist_id}","starred_url":"https://api.github.com/users/LemADEC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LemADEC/subscriptions","organizations_url":"https://api.github.com/users/LemADEC/orgs","repos_url":"https://api.github.com/users/LemADEC/repos","events_url":"https://api.github.com/users/LemADEC/events{/privacy}","received_events_url":"https://api.github.com/users/LemADEC/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Esteemed-Innovation/Flaxbeards-Steam-Power/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Esteemed-Innovation/Flaxbeards-Steam-Power/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/Esteemed-Innovation/Flaxbeards-Steam-Power/labels/performance","name":"performance","color":"fbca04"},{"url":"https://api.github.com/repos/Esteemed-Innovation/Flaxbeards-Steam-Power/labels/prio:high","name":"prio:high","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Esteemed-Innovation/Flaxbeards-Steam-Power/milestones/2","html_url":"https://github.com/Esteemed-Innovation/Flaxbeards-Steam-Power/milestones/0.29.0","labels_url":"https://api.github.com/repos/Esteemed-Innovation/Flaxbeards-Steam-Power/milestones/2/labels","id":1035637,"number":2,"title":"0.29.0","description":"Major steam tool upgradeability, and various exosuit upgrades feature update","creator":{"login":"elifoster","id":4176124,"avatar_url":"https://avatars.githubusercontent.com/u/4176124?v=3","gravatar_id":"","url":"https://api.github.com/users/elifoster","html_url":"https://github.com/elifoster","followers_url":"https://api.github.com/users/elifoster/followers","following_url":"https://api.github.com/users/elifoster/following{/other_user}","gists_url":"https://api.github.com/users/elifoster/gists{/gist_id}","starred_url":"https://api.github.com/users/elifoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifoster/subscriptions","organizations_url":"https://api.github.com/users/elifoster/orgs","repos_url":"https://api.github.com/users/elifoster/repos","events_url":"https://api.github.com/users/elifoster/events{/privacy}","received_events_url":"https://api.github.com/users/elifoster/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":14,"state":"open","created_at":"2015-03-24T04:12:01Z","updated_at":"2015-12-31T06:31:26Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-12-31T05:26:41Z","updated_at":"2016-01-01T03:14:53Z","closed_at":null,"body":"ReflectionHelper is fairly slow to execute by design. It's intended to be used once, during server init or something alike.\r\nAs seen in https://github.com/Esteemed-Innovation/Flaxbeards-Steam-Power/blob/master/src/main/java/flaxbeard/steamcraft/handler/SteamcraftEventHandler.java#L454\r\nThere's 2 to 4 calls to that library for every LivingUpdateEvent() on a villager.\r\nDue to this, the mod is 6 times slower than other mods in processing this event.\r\n\r\nOther occurrences might exist elsewhere in the code, notably here: https://github.com/Esteemed-Innovation/Flaxbeards-Steam-Power/blob/a84a1f34bd3ddf1a2d996e80102e2a355a54b219/src/main/java/flaxbeard/steamcraft/tile/TileEntityCustomFurnace.java#L290"},"comment":{"url":"https://api.github.com/repos/Esteemed-Innovation/Flaxbeards-Steam-Power/issues/comments/168279591","html_url":"https://github.com/Esteemed-Innovation/Flaxbeards-Steam-Power/issues/353#issuecomment-168279591","issue_url":"https://api.github.com/repos/Esteemed-Innovation/Flaxbeards-Steam-Power/issues/353","id":168279591,"user":{"login":"LemADEC","id":4776032,"avatar_url":"https://avatars.githubusercontent.com/u/4776032?v=3","gravatar_id":"","url":"https://api.github.com/users/LemADEC","html_url":"https://github.com/LemADEC","followers_url":"https://api.github.com/users/LemADEC/followers","following_url":"https://api.github.com/users/LemADEC/following{/other_user}","gists_url":"https://api.github.com/users/LemADEC/gists{/gist_id}","starred_url":"https://api.github.com/users/LemADEC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LemADEC/subscriptions","organizations_url":"https://api.github.com/users/LemADEC/orgs","repos_url":"https://api.github.com/users/LemADEC/repos","events_url":"https://api.github.com/users/LemADEC/events{/privacy}","received_events_url":"https://api.github.com/users/LemADEC/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T03:14:53Z","updated_at":"2016-01-01T03:14:53Z","body":"I do it in the static constructor of the class, so it's done when the class is instantiated, typically during  init phase."}}