{"action":"opened","issue":{"url":"https://api.github.com/repos/bpampuch/pdfmake/issues/280","labels_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/280/comments","events_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/280/events","html_url":"https://github.com/bpampuch/pdfmake/issues/280","id":73143258,"number":280,"title":"2x text -> 40x slowdown!","user":{"login":"hujhax","id":1321084,"avatar_url":"https://avatars.githubusercontent.com/u/1321084?v=3","gravatar_id":"","url":"https://api.github.com/users/hujhax","html_url":"https://github.com/hujhax","followers_url":"https://api.github.com/users/hujhax/followers","following_url":"https://api.github.com/users/hujhax/following{/other_user}","gists_url":"https://api.github.com/users/hujhax/gists{/gist_id}","starred_url":"https://api.github.com/users/hujhax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hujhax/subscriptions","organizations_url":"https://api.github.com/users/hujhax/orgs","repos_url":"https://api.github.com/users/hujhax/repos","events_url":"https://api.github.com/users/hujhax/events{/privacy}","received_events_url":"https://api.github.com/users/hujhax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-04T22:18:02Z","updated_at":"2015-05-04T22:18:02Z","closed_at":null,"body":"So this is odd -- I've got a project where I'm generating text PDFs, nothing too fancy.  I've hit some sort of threshold, though -- I went from making a ~20-page document to making a ~40-page document, and the PDF generation spiked from ~3 seconds to ~2 *minutes*.\r\n\r\nI've got a repository up (with obfuscated text files, whee NDAs) [here](http://github.com/hujhax/weird-pdfmake-slowdown).  You can click to generate the \"slow\" or \"fast\" documents, with basic instrumenting telling you how long each one takes.\r\n\r\nHave I hit some sort of known performance landmine here?  Does pdfMake just take a lot longer once you get above a particular input-object size?  Either way, is there a way to optimize around this?"}}