{"action":"created","issue":{"url":"https://api.github.com/repos/inikulin/parse5/issues/130","repository_url":"https://api.github.com/repos/inikulin/parse5","labels_url":"https://api.github.com/repos/inikulin/parse5/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/inikulin/parse5/issues/130/comments","events_url":"https://api.github.com/repos/inikulin/parse5/issues/130/events","html_url":"https://github.com/inikulin/parse5/issues/130","id":155500323,"number":130,"title":"Streaming implementation buffers text infinitely","user":{"login":"RReverser","id":557590,"avatar_url":"https://avatars.githubusercontent.com/u/557590?v=3","gravatar_id":"","url":"https://api.github.com/users/RReverser","html_url":"https://github.com/RReverser","followers_url":"https://api.github.com/users/RReverser/followers","following_url":"https://api.github.com/users/RReverser/following{/other_user}","gists_url":"https://api.github.com/users/RReverser/gists{/gist_id}","starred_url":"https://api.github.com/users/RReverser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RReverser/subscriptions","organizations_url":"https://api.github.com/users/RReverser/orgs","repos_url":"https://api.github.com/users/RReverser/repos","events_url":"https://api.github.com/users/RReverser/events{/privacy}","received_events_url":"https://api.github.com/users/RReverser/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inikulin/parse5/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-18T13:24:24Z","updated_at":"2016-05-18T13:31:05Z","closed_at":null,"body":"If chunk has ended in DATA / RCDATA / ... states, it's possible to emit most of the collected text (before the entity or smth else) without buffering it between chunks. Currently, parse5 attempts to collect all the text into the internal buffer until it finds a beginning of the new token (like a starting tag), and only then emits altogether which is highly inefficient for documents containing long text chunks."},"comment":{"url":"https://api.github.com/repos/inikulin/parse5/issues/comments/220026291","html_url":"https://github.com/inikulin/parse5/issues/130#issuecomment-220026291","issue_url":"https://api.github.com/repos/inikulin/parse5/issues/130","id":220026291,"user":{"login":"RReverser","id":557590,"avatar_url":"https://avatars.githubusercontent.com/u/557590?v=3","gravatar_id":"","url":"https://api.github.com/users/RReverser","html_url":"https://github.com/RReverser","followers_url":"https://api.github.com/users/RReverser/followers","following_url":"https://api.github.com/users/RReverser/following{/other_user}","gists_url":"https://api.github.com/users/RReverser/gists{/gist_id}","starred_url":"https://api.github.com/users/RReverser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RReverser/subscriptions","organizations_url":"https://api.github.com/users/RReverser/orgs","repos_url":"https://api.github.com/users/RReverser/repos","events_url":"https://api.github.com/users/RReverser/events{/privacy}","received_events_url":"https://api.github.com/users/RReverser/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T13:31:05Z","updated_at":"2016-05-18T13:31:05Z","body":"And maybe partially to #52 (although obviously not the biggest source :) )."}}