{"action":"created","issue":{"url":"https://api.github.com/repos/markreidvfx/pyaaf2/issues/22","repository_url":"https://api.github.com/repos/markreidvfx/pyaaf2","labels_url":"https://api.github.com/repos/markreidvfx/pyaaf2/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/markreidvfx/pyaaf2/issues/22/comments","events_url":"https://api.github.com/repos/markreidvfx/pyaaf2/issues/22/events","html_url":"https://github.com/markreidvfx/pyaaf2/issues/22","id":391932008,"node_id":"MDU6SXNzdWUzOTE5MzIwMDg=","number":22,"title":"PyAAF2 performance seems to be about 4x slower than PyAAF1","user":{"login":"ssteinbach","id":61017,"node_id":"MDQ6VXNlcjYxMDE3","avatar_url":"https://avatars3.githubusercontent.com/u/61017?v=4","gravatar_id":"","url":"https://api.github.com/users/ssteinbach","html_url":"https://github.com/ssteinbach","followers_url":"https://api.github.com/users/ssteinbach/followers","following_url":"https://api.github.com/users/ssteinbach/following{/other_user}","gists_url":"https://api.github.com/users/ssteinbach/gists{/gist_id}","starred_url":"https://api.github.com/users/ssteinbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssteinbach/subscriptions","organizations_url":"https://api.github.com/users/ssteinbach/orgs","repos_url":"https://api.github.com/users/ssteinbach/repos","events_url":"https://api.github.com/users/ssteinbach/events{/privacy}","received_events_url":"https://api.github.com/users/ssteinbach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-17T23:24:31Z","updated_at":"2018-12-19T06:52:51Z","closed_at":null,"author_association":"NONE","body":"I've been looking at the performance of PyAAF2 vs PyAAF1, and it unfortunately looks like PyAAF2 is about 4x slower.  For example, this file:\r\nhttps://github.com/PixarAnimationStudios/OpenTimelineIO/blob/master/opentimelineio_contrib/adapters/tests/sample_data/linear_speed_effects.aaf\r\n\r\nTakes about 4x as long to read with PyAAF2.  Profiling suggests a couple things might be going on but a clear winner doesn't obviously jump out to me...\r\n\r\nHere is the script I was using to profile (via the OTIO adapter):\r\n```python\r\n#!/usr/bin/env python\r\nimport cProfile\r\nimport StringIO\r\nimport pstats\r\nimport opentimelineio as otio\r\n\r\npr = cProfile.Profile()\r\npr.enable()\r\ntl = otio.adapters.read_from_file(\r\n    \"opentimelineio_contrib/adapters/tests/sample_data/linear_speed_effects.aaf\"\r\n)\r\npr.disable()\r\ns = StringIO.StringIO()\r\nsortby = 'cumulative'\r\n# sortby = 'tottime'\r\nps = pstats.Stats(pr, stream=s).sort_stats(sortby)\r\nps.print_stats()\r\nprint s.getvalue()\r\n```\r\n\r\nAny suggestions or thoughts on what might be done to improve performance in PyAAF2?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/markreidvfx/pyaaf2/issues/comments/448488852","html_url":"https://github.com/markreidvfx/pyaaf2/issues/22#issuecomment-448488852","issue_url":"https://api.github.com/repos/markreidvfx/pyaaf2/issues/22","id":448488852,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODQ4ODg1Mg==","user":{"login":"markreidvfx","id":814966,"node_id":"MDQ6VXNlcjgxNDk2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/814966?v=4","gravatar_id":"","url":"https://api.github.com/users/markreidvfx","html_url":"https://github.com/markreidvfx","followers_url":"https://api.github.com/users/markreidvfx/followers","following_url":"https://api.github.com/users/markreidvfx/following{/other_user}","gists_url":"https://api.github.com/users/markreidvfx/gists{/gist_id}","starred_url":"https://api.github.com/users/markreidvfx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markreidvfx/subscriptions","organizations_url":"https://api.github.com/users/markreidvfx/orgs","repos_url":"https://api.github.com/users/markreidvfx/repos","events_url":"https://api.github.com/users/markreidvfx/events{/privacy}","received_events_url":"https://api.github.com/users/markreidvfx/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T06:52:51Z","updated_at":"2018-12-19T06:52:51Z","author_association":"OWNER","body":"A quick cython test\r\n`cythonize -i -b ./aaf2`\r\nThat gives me a 1.4x speed up on this test from pure python. and thats without static typing anything yet. "}}
{"actor":{"display_login":"markreidvfx"}}