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

Improve User lookup performance (fixes issue #29) #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hoffie
Copy link

@hoffie hoffie commented Sep 28, 2015

The previous code always tried to retrieve the underlying mapiobj.
This is not always needed and may involve multiple network round-trips.
Therefore, this commit lazy-loads the mapiobj instance so that simple
user attribute retrieval can be executed without loading this object
at all.

The previous code always tried to retrieve the underlying mapiobj.
This is not always needed and may involve multiple network round-trips.
Therefore, this commit lazy-loads the mapiobj instance so that simple
user attribute retrieval can be executed without loading this object
at all.
@srepmub
Copy link
Collaborator

srepmub commented Sep 29, 2015

looks good, thanks! we probably have more such cases, where we do too much work in init. btw looping over folders (Folder.folders()) is probably also still quite slow atm.. ;-)

@jelly
Copy link
Collaborator

jelly commented Oct 13, 2015

Thanks for the PR, we will merge this change when the Github repo is up to date

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.

3 participants