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

Speed up load times #404

Merged
merged 2 commits into from
Jun 7, 2017
Merged

Speed up load times #404

merged 2 commits into from
Jun 7, 2017

Conversation

skarbat
Copy link
Contributor

@skarbat skarbat commented Jun 7, 2017

On initial load, the application was copying and synchronizing local and remote web content.
This had the side effect of slowing down response times considerably.
Fixed by simply loading the packaged version of the content, as we don't really upgrade the remote version.

@tombettany

@skarbat
Copy link
Contributor Author

skarbat commented Jun 7, 2017

@skarbat
Copy link
Contributor Author

skarbat commented Jun 7, 2017

Copy link
Member

@tombettany tombettany left a comment

Choose a reason for hiding this comment

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

Just a small note which doesn't affect the functioning of the code.



def _get_image_from_str(img_str):
'''
Create a unique filename that points to img_str
Copy link
Member

Choose a reason for hiding this comment

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

This actually encodes the provided image in base64 and returns that string. Might be worth making the comment accurate.

@skarbat
Copy link
Contributor Author

skarbat commented Jun 7, 2017

Thanks! Fixed and merging.

@skarbat skarbat merged commit da8000b into rc Jun 7, 2017
@skarbat skarbat deleted the fix-loading-times branch June 7, 2017 13:36
paulvarache pushed a commit that referenced this pull request May 6, 2019
* Speed up load times

* Rectified function comment
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