{"action":"created","issue":{"url":"https://api.github.com/repos/lunixbochs/lib43/issues/14","labels_url":"https://api.github.com/repos/lunixbochs/lib43/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/lunixbochs/lib43/issues/14/comments","events_url":"https://api.github.com/repos/lunixbochs/lib43/issues/14/events","html_url":"https://github.com/lunixbochs/lib43/issues/14","id":58484863,"number":14,"title":"implement a cleanup function (_fini?) instead of manually invoking fflush(stdout)","user":{"login":"lunixbochs","id":117642,"avatar_url":"https://avatars.githubusercontent.com/u/117642?v=3","gravatar_id":"","url":"https://api.github.com/users/lunixbochs","html_url":"https://github.com/lunixbochs","followers_url":"https://api.github.com/users/lunixbochs/followers","following_url":"https://api.github.com/users/lunixbochs/following{/other_user}","gists_url":"https://api.github.com/users/lunixbochs/gists{/gist_id}","starred_url":"https://api.github.com/users/lunixbochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunixbochs/subscriptions","organizations_url":"https://api.github.com/users/lunixbochs/orgs","repos_url":"https://api.github.com/users/lunixbochs/repos","events_url":"https://api.github.com/users/lunixbochs/events{/privacy}","received_events_url":"https://api.github.com/users/lunixbochs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-22T01:20:45Z","updated_at":"2015-02-22T08:11:06Z","closed_at":null,"body":"Going forward, I want to think about the ability of a lib43 user to tune the runtime. One of the most useful cases right now is beating the startup/teardown cost of *every other* libc and crt0 I've tested, sometimes by a significant margin.\r\n\r\nAdding a `_fini` function that does anything like fflush() on all file descriptors could waste even precious *nanoseconds* which is useful if using lib43 for competitive reasons."},"comment":{"url":"https://api.github.com/repos/lunixbochs/lib43/issues/comments/75424990","html_url":"https://github.com/lunixbochs/lib43/issues/14#issuecomment-75424990","issue_url":"https://api.github.com/repos/lunixbochs/lib43/issues/14","id":75424990,"user":{"login":"lunixbochs","id":117642,"avatar_url":"https://avatars.githubusercontent.com/u/117642?v=3","gravatar_id":"","url":"https://api.github.com/users/lunixbochs","html_url":"https://github.com/lunixbochs","followers_url":"https://api.github.com/users/lunixbochs/followers","following_url":"https://api.github.com/users/lunixbochs/following{/other_user}","gists_url":"https://api.github.com/users/lunixbochs/gists{/gist_id}","starred_url":"https://api.github.com/users/lunixbochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunixbochs/subscriptions","organizations_url":"https://api.github.com/users/lunixbochs/orgs","repos_url":"https://api.github.com/users/lunixbochs/repos","events_url":"https://api.github.com/users/lunixbochs/events{/privacy}","received_events_url":"https://api.github.com/users/lunixbochs/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T08:11:06Z","updated_at":"2015-02-22T08:11:06Z","body":"argv is like two instructions, while \"flush all open file handles\" is actually a ton of work and potentially many syscalls."}}