refactor code to use references where possible
currently most of the time the config is passed to different functions the config gets cloned therefore taking up more memory. Using references would be both faster and more idiomatic.
currently most of the time the config is passed to different functions the config gets cloned therefore taking up more memory. Using references would be both faster and more idiomatic.