{"action":"created","issue":{"url":"https://api.github.com/repos/DynareTeam/dynare/issues/1057","labels_url":"https://api.github.com/repos/DynareTeam/dynare/issues/1057/labels{/name}","comments_url":"https://api.github.com/repos/DynareTeam/dynare/issues/1057/comments","events_url":"https://api.github.com/repos/DynareTeam/dynare/issues/1057/events","html_url":"https://github.com/DynareTeam/dynare/issues/1057","id":105993354,"number":1057,"title":"Rethink default clear all to improve compatibility with Matlab 2015b","user":{"login":"JohannesPfeifer","id":3679304,"avatar_url":"https://avatars.githubusercontent.com/u/3679304?v=3","gravatar_id":"","url":"https://api.github.com/users/JohannesPfeifer","html_url":"https://github.com/JohannesPfeifer","followers_url":"https://api.github.com/users/JohannesPfeifer/followers","following_url":"https://api.github.com/users/JohannesPfeifer/following{/other_user}","gists_url":"https://api.github.com/users/JohannesPfeifer/gists{/gist_id}","starred_url":"https://api.github.com/users/JohannesPfeifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohannesPfeifer/subscriptions","organizations_url":"https://api.github.com/users/JohannesPfeifer/orgs","repos_url":"https://api.github.com/users/JohannesPfeifer/repos","events_url":"https://api.github.com/users/JohannesPfeifer/events{/privacy}","received_events_url":"https://api.github.com/users/JohannesPfeifer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-11T11:38:53Z","updated_at":"2015-09-15T13:35:59Z","closed_at":null,"body":"With Matlab 2015b the default ```clear all``` statement interferes with the new just-in-time compiler, resulting in many warnings and poor performance. \r\nWe may want to get rid of this clear all."},"comment":{"url":"https://api.github.com/repos/DynareTeam/dynare/issues/comments/140395317","html_url":"https://github.com/DynareTeam/dynare/issues/1057#issuecomment-140395317","issue_url":"https://api.github.com/repos/DynareTeam/dynare/issues/1057","id":140395317,"user":{"login":"stepan-a","id":3244849,"avatar_url":"https://avatars.githubusercontent.com/u/3244849?v=3","gravatar_id":"","url":"https://api.github.com/users/stepan-a","html_url":"https://github.com/stepan-a","followers_url":"https://api.github.com/users/stepan-a/followers","following_url":"https://api.github.com/users/stepan-a/following{/other_user}","gists_url":"https://api.github.com/users/stepan-a/gists{/gist_id}","starred_url":"https://api.github.com/users/stepan-a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepan-a/subscriptions","organizations_url":"https://api.github.com/users/stepan-a/orgs","repos_url":"https://api.github.com/users/stepan-a/repos","events_url":"https://api.github.com/users/stepan-a/events{/privacy}","received_events_url":"https://api.github.com/users/stepan-a/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T13:35:59Z","updated_at":"2015-09-15T13:35:59Z","body":"Doing timing with ```fs2000.mod``` using matlab R2015b I do not find significant differences when I try with/without options ```noclearall``` or ```onlyclearglobals```... So I wonder if we really care about JIT performance issues. The time spent in JIT compilation is not so important (even for larger models, as the preprocessor rewrites the dynamic and static routines for each dynare run,  there is not much difference to expect). But we need at least to deal with the warnings displayed by matlab (about the clearing of functions ```dynare.m```, ```fs2000.m```, ...). I do not know how to do that... I do not know if it is possible to clear all the functions/variables except a subset of functions (maybe with regular expressions). Or we can simply hide the warning. "}}