{"action":"opened","issue":{"url":"https://api.github.com/repos/gridlab-d/gridlab-d/issues/1087","repository_url":"https://api.github.com/repos/gridlab-d/gridlab-d","labels_url":"https://api.github.com/repos/gridlab-d/gridlab-d/issues/1087/labels{/name}","comments_url":"https://api.github.com/repos/gridlab-d/gridlab-d/issues/1087/comments","events_url":"https://api.github.com/repos/gridlab-d/gridlab-d/issues/1087/events","html_url":"https://github.com/gridlab-d/gridlab-d/issues/1087","id":271108056,"number":1087,"title":"Very poor performance observed in powerflow/meter.cpp","user":{"login":"dchassin","id":20801735,"avatar_url":"https://avatars1.githubusercontent.com/u/20801735?v=4","gravatar_id":"","url":"https://api.github.com/users/dchassin","html_url":"https://github.com/dchassin","followers_url":"https://api.github.com/users/dchassin/followers","following_url":"https://api.github.com/users/dchassin/following{/other_user}","gists_url":"https://api.github.com/users/dchassin/gists{/gist_id}","starred_url":"https://api.github.com/users/dchassin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchassin/subscriptions","organizations_url":"https://api.github.com/users/dchassin/orgs","repos_url":"https://api.github.com/users/dchassin/repos","events_url":"https://api.github.com/users/dchassin/events{/privacy}","received_events_url":"https://api.github.com/users/dchassin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-03T20:23:04Z","updated_at":"2017-11-03T20:23:04Z","closed_at":null,"author_association":"MEMBER","body":"There's a suspicious loop in powerflow/meter::postsync() that may be the source of the problem:\r\n\r\nhttps://github.com/gridlab-d/gridlab-d/blob/eee842c92b5a810f597f3194759d776d49b613e2/powerflow/meter.cpp#L567 `last_measured_avg_voltage_mag[0] = last_measured_avg_voltage_mag[0] + ((last_measured_voltage[0].Mag() - last_measured_avg_voltage_mag[0])/(interval_dt + i));`\r\n\r\nThis can take a long time when dt is large (i.e., 3600).  I'm not even certain what this computation is really doing, so I'm not certain how to improve its performance.  "}}
{"actor":{"display_login":"dchassin"}}