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

PersistentInfo lookup optimizations #236

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

Conversation

gin-ahirsch
Copy link
Contributor

This includes #230.

First, we don't really need a shared_ptr from PersistentCopy(), since
we're not sharing it with anyone yet.
But then, we don't really need a pointer at all and we could just return
by value and let call-sites move the value to the heap themselves if
they need it there.
At this point, the function body is trivial, so we don't really need
the function.
Otherwise we don't have anything to synchronize.
These overloads take a Persistable&, as opposed to a QString, which
allows directly saving and retrieving Persistables without additional
lookups.
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.

1 participant