{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/2038","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/2038/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/2038/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/2038/events","html_url":"https://github.com/mpv-player/mpv/issues/2038","id":87029835,"number":2038,"title":"Slow startup with embedded font","user":{"login":"occivink","id":5473453,"avatar_url":"https://avatars.githubusercontent.com/u/5473453?v=3","gravatar_id":"","url":"https://api.github.com/users/occivink","html_url":"https://github.com/occivink","followers_url":"https://api.github.com/users/occivink/followers","following_url":"https://api.github.com/users/occivink/following{/other_user}","gists_url":"https://api.github.com/users/occivink/gists{/gist_id}","starred_url":"https://api.github.com/users/occivink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/occivink/subscriptions","organizations_url":"https://api.github.com/users/occivink/orgs","repos_url":"https://api.github.com/users/occivink/repos","events_url":"https://api.github.com/users/occivink/events{/privacy}","received_events_url":"https://api.github.com/users/occivink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-10T16:35:35Z","updated_at":"2015-06-10T16:41:05Z","closed_at":null,"body":"mpv takes a long time (~4s on my system) to start up when loading [this particular file](https://0x0.st/Vl.mkv). The file contains an embedded font (which is 5mb large) and a subtitle track using it.\r\nMost of the time is spent on `[libass] Setting up fonts... ` which may indicate that this is not an mpv bug, though."},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/110827283","html_url":"https://github.com/mpv-player/mpv/issues/2038#issuecomment-110827283","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/2038","id":110827283,"user":{"login":"wm4","id":1387750,"avatar_url":"https://avatars.githubusercontent.com/u/1387750?v=3","gravatar_id":"","url":"https://api.github.com/users/wm4","html_url":"https://github.com/wm4","followers_url":"https://api.github.com/users/wm4/followers","following_url":"https://api.github.com/users/wm4/following{/other_user}","gists_url":"https://api.github.com/users/wm4/gists{/gist_id}","starred_url":"https://api.github.com/users/wm4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wm4/subscriptions","organizations_url":"https://api.github.com/users/wm4/orgs","repos_url":"https://api.github.com/users/wm4/repos","events_url":"https://api.github.com/users/wm4/events{/privacy}","received_events_url":"https://api.github.com/users/wm4/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T16:41:05Z","updated_at":"2015-06-10T16:41:05Z","body":"Starting mpv and playing the file takes \"only\" 2.5s on my old core duo 2.\r\n\r\nThe blame of course goes to fontconfig, but maybe it's even slower than necessary on your system."}}