Skip to content

Machine data caching#125

Merged
febbraro merged 2 commits into
developfrom
feature/machine-data-caching
Nov 18, 2017
Merged

Machine data caching#125
febbraro merged 2 commits into
developfrom
feature/machine-data-caching

Conversation

@febbraro
Copy link
Copy Markdown
Member

Moved to all pointer functions, as non-pointers make a copy of the struct and the data in a pointer didn't come with it.

Copy link
Copy Markdown
Contributor

@grayside grayside left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dang, I explored that but it never occurred to me that pass-by-value up the call chain would break it!

Would it be better to use the logger pattern of directly accessing the machine as a global?

@febbraro
Copy link
Copy Markdown
Member Author

The global pattern wouldn't make a different to this error, the fact that a single intermediary function call was not a pointer caused the copy.

@febbraro febbraro merged commit 86897dd into develop Nov 18, 2017
@febbraro febbraro deleted the feature/machine-data-caching branch November 18, 2017 04:27
@febbraro febbraro added this to the v2.1 milestone Nov 18, 2017
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.

2 participants