{"action":"created","issue":{"url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/89","labels_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/89/comments","events_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/89/events","html_url":"https://github.com/nordnet/cordova-hot-code-push/issues/89","id":126433339,"number":89,"title":"size of chcp.manifest file","user":{"login":"lorenzyannick","id":9976897,"avatar_url":"https://avatars.githubusercontent.com/u/9976897?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzyannick","html_url":"https://github.com/lorenzyannick","followers_url":"https://api.github.com/users/lorenzyannick/followers","following_url":"https://api.github.com/users/lorenzyannick/following{/other_user}","gists_url":"https://api.github.com/users/lorenzyannick/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzyannick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzyannick/subscriptions","organizations_url":"https://api.github.com/users/lorenzyannick/orgs","repos_url":"https://api.github.com/users/lorenzyannick/repos","events_url":"https://api.github.com/users/lorenzyannick/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzyannick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-13T14:46:18Z","updated_at":"2016-01-15T15:03:00Z","closed_at":null,"body":"I tried to benchmark your plugin by adding approx 5000 dummy empty files to the project. So the size of the file chcp.manifest explode (normal)\r\n\r\n- classic generation output : 450KB\r\n- minimified version : 360KB\r\n- zip version : 17KB\r\n\r\nSo if there a a big amount of file, to improve the update process, we maybe first need to minimify the file or zip it.\r\nFor the min version everyone can use nodeJS like json-minify\r\nFor the zip solution the plugin should handle it.\r\nIs there a way to do it ?\r\n\r\nThe installation phase took about  1minute now, just to update one file. (on my iPhone 6, should be worse on iPhone 5 or even old Android device)\r\nIt's because the checksum is calculated 5000 times \"for nothing\" and also moving the local files 5000 times\r\n```\r\n[Wed, 13 Jan 2016 14:42:01 GMT] \"GET /chcp.json\" \"myAppHotCode/70 CFNetwork/711.5.6 Darwin/14.0.0\"\r\n[Wed, 13 Jan 2016 14:42:01 GMT] \"GET /chcp.manifest\" \"myAppHotCode/70 CFNetwork/711.5.6 Darwin/14.0.0\"\r\n[Wed, 13 Jan 2016 14:42:11 GMT] \"GET /css/style.css\" \"myAppHotCode/70 CFNetwork/711.5.6 Darwin/14.0.0\"\r\n[Wed, 13 Jan 2016 14:43:07 GMT] \"GET /chcp.json\" \"myAppHotCode/70 CFNetwork/711.5.6 Darwin/14.0.0\"\r\n```\r\n\r\nMaybe we can think about an improvement to prevent that time to explode ?\r\nOne thing is to reduce the project file first before using this plugin\r\n\r\nthx @nikDemyankov for all your great work :)"},"comment":{"url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/comments/171984564","html_url":"https://github.com/nordnet/cordova-hot-code-push/issues/89#issuecomment-171984564","issue_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/89","id":171984564,"user":{"login":"dwhitmore","id":5738707,"avatar_url":"https://avatars.githubusercontent.com/u/5738707?v=3","gravatar_id":"","url":"https://api.github.com/users/dwhitmore","html_url":"https://github.com/dwhitmore","followers_url":"https://api.github.com/users/dwhitmore/followers","following_url":"https://api.github.com/users/dwhitmore/following{/other_user}","gists_url":"https://api.github.com/users/dwhitmore/gists{/gist_id}","starred_url":"https://api.github.com/users/dwhitmore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwhitmore/subscriptions","organizations_url":"https://api.github.com/users/dwhitmore/orgs","repos_url":"https://api.github.com/users/dwhitmore/repos","events_url":"https://api.github.com/users/dwhitmore/events{/privacy}","received_events_url":"https://api.github.com/users/dwhitmore/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T15:03:00Z","updated_at":"2016-01-15T15:03:00Z","body":"Ipad shows 4GB remaining in memory.  App is around 500MB.  Updates around 200MB mostly work, 300MB updates reliably crash:\r\n\r\nConsole shows: malloc: *** mach_vm_map(size=147456) failed (error code=3)\r\nLogs show: EXC_BAD_ACCESS (SIGSERV) usually triggered around an com.apple.NSURLConnectionLoader\r\n\r\nThis is during the fetch, before the download.  How exactly does the process work, I'm assuming every update creates a new container, fetches new files there and then copies over unchanged files.  When is the old container removed?  Or does it not get removed?\r\n\r\nThanks for all your help."}}