Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Cache public worksheets for performance #19

Merged
merged 2 commits into from
Jan 14, 2012
Merged

Cache public worksheets for performance #19

merged 2 commits into from
Jan 14, 2012

Conversation

kramer314
Copy link
Contributor

@@ -153,6 +153,17 @@ def __init__(self, dir, user_manager = None):
W = WorksheetDict(self)
self.__worksheets = W

# Store / Refresh public worksheets
for id_number in os.listdir(self.__storage._abspath(self.__storage._user_path("pub"))):
Copy link
Member

Choose a reason for hiding this comment

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

I wonder what tradeoff there would be between using the list of user visible worksheets for the pub user compared to using os.listdir. Is the set of "viewable worksheets" for the pub user exactly the published worksheets?

jasongrout added a commit that referenced this pull request Jan 14, 2012
Cache public worksheets for performance
@jasongrout jasongrout merged commit d94e404 into sagemath:master Jan 14, 2012
@jasongrout
Copy link
Member

Looks good to me.

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

Successfully merging this pull request may close these issues.

2 participants