Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH - utilize persistent variables for speedup #2192

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

schoffelen
Copy link
Contributor

No description provided.

@schoffelen
Copy link
Contributor Author

This is a relatively minor thing, but I came across a substantial relative amount (in my case ~20%) of time spent in these functions when calling a sequence of fieldtrip functions multiple times in a loop. The context then is that a lot of bookkeeping time is spent in the memory profiling related ambles (time of which is multiplied by two when ft-functions start with a call to ft_selectdata -> even if cfg.trials/channel = 'all'), as well as in ft_defaults.

@schoffelen
Copy link
Contributor Author

Hi @robertoostenveld do you foresee any problems if I merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant