{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/3752","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/3752/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/3752/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/3752/events","html_url":"https://github.com/HaxeFoundation/haxe/pull/3752","id":54221359,"number":3752,"title":"Xml rewrite","user":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-13T17:23:55Z","updated_at":"2015-01-14T01:24:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/pulls/3752","html_url":"https://github.com/HaxeFoundation/haxe/pull/3752","diff_url":"https://github.com/HaxeFoundation/haxe/pull/3752.diff","patch_url":"https://github.com/HaxeFoundation/haxe/pull/3752.patch"},"body":"This pull request unifies XML handling into a single representation for all targets. My plan is to get this stable, then look into optimizing performance again. These are the current results of parsing and traversing a 2.7 MB XML file:\r\n\r\ntarget | new parse | old parse | new access | old access | %\r\n--- | --- | --- | --- | --- | ---\r\nflash | 0.63 | 0.27 | 1.6 | 7.36 | 29%\r\nneko | 4.45 | 1.07 | 3.81 | 3.82 | 169%\r\nphp | 8.63 | 5.11 | 11.25 | 10.3 | 129%\r\ncpp | 0.92 | 4.33 | 0.27 | 0.45 | 25%\r\ninterp | 7.28 | 2.91 | 5.03 | 5.55 | 146%\r\n\r\nThe Flash results are with #3743 merged. \r\n\r\nFor neko I've already worked on a native parser implementation to speed up parsing again: https://github.com/HaxeFoundation/neko/compare/xml_parser_backport\r\n\r\nI've also tried using the native PHP parser again but ran into too many issues for now.\r\n\r\n@ncannasse: Any objections?"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/69854208","html_url":"https://github.com/HaxeFoundation/haxe/pull/3752#issuecomment-69854208","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/3752","id":69854208,"user":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T01:24:16Z","updated_at":"2015-01-14T01:24:16Z","body":"It looks like I was testing with debug neko. This is what I'm getting in release mode with https://github.com/HaxeFoundation/neko/pull/48 being merged:\r\n\r\ntarget | new parse | old parse | new access | old access | %\r\n--- | --- | --- | --- | --- | ---\r\nneko | 0.88 | 0.91 | 0.94 | 0.8 | 106%\r\n\r\nSo accessing is a little bit slower now because the Xml data structure is less tailor-made for neko. That's easy to optimize though."}}