Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Speed up fetching content info by using cache#67

Closed
gbhall wants to merge 1 commit into
danikula:masterdanikula/AndroidVideoCache:masterfrom
gbhall:mastergbhall/AndroidVideoCache:masterCopy head branch name to clipboard
Closed

Speed up fetching content info by using cache#67
gbhall wants to merge 1 commit into
danikula:masterdanikula/AndroidVideoCache:masterfrom
gbhall:mastergbhall/AndroidVideoCache:masterCopy head branch name to clipboard

Conversation

@gbhall

@gbhall gbhall commented Apr 30, 2016

Copy link
Copy Markdown

Improved fetchContentInfo speed for preexisting content by using SQLite database.

This update increases fetchContentInfo()'s speed from ~500ms to 1ms.

@danikula

danikula commented Jul 27, 2016

Copy link
Copy Markdown
Owner

@gbhall Thanks for your contribution. 👍

Your code resolves problem, but should be improved. There are a lot of sql specific code in HttpUrlSource. HttpUrlSource shouldn't contain any database logic. The better solution is new interface ContentInfoStorage with database based implementation DatabaseContentInfoStorage. Also your implementation doesn't contain any test that proof your code works well.
Please rebase master, implement you pull request in this way, write tests.

Please notify me if you don't want improve your PR. In this case I will implement it by myself.

Sorry for looooooooong delay on your PR.

@danikula danikula changed the title Improved fetchContentInfo speed for preexisting content by using SQLi… Speed up fetching content info by using cache Jul 27, 2016
@gbhall

gbhall commented Aug 2, 2016

Copy link
Copy Markdown
Author

Hey man, no problem :)

Sorry I don't currently have any time to improve my PR. However if you have
any questions, feel free to ask me :)

Cheers!
Gareth

On Thu, 28 Jul 2016 at 02:30 Alexey Danilov notifications@github.com
wrote:

@gbhall https://github.com/gbhall Thanks for your contribution. 👍

Your code resolves problem, but should be improved. There are a lot of sql
specific code in HttpUrlSource. HttpUrlSource shouldn't contain any
database logic. The better solution is new interface ContentInfo with
database based implementation DatabaseContentInfo. Also your
implementation doesn't contain any test that proof your code works well.
Please rebase master, implement you pull request in this way, write tests.

Please notify me if you don't want improve your PR. In this case I will
implement it by myself.

Sorry for looooooooong delay on your PR.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#67 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFvuahe-b_5spUNUR19knhFgCpWHDXiks5qZ6O2gaJpZM4ITfhu
.

@danikula

danikula commented Aug 2, 2016

Copy link
Copy Markdown
Owner

@gbhall thanks for response. I will get your solution as start point and will improve it as described above.

@danikula

danikula commented Aug 5, 2016

Copy link
Copy Markdown
Owner

Fixed here. @gbhall Thanks for contribution.

@danikula danikula closed this Aug 5, 2016
@gbhall

gbhall commented Aug 5, 2016

Copy link
Copy Markdown
Author

No problem man, glad I could help! :)
On Fri, 5 Aug 2016 at 7:38 PM, Alexey Danilov notifications@github.com
wrote:

Closed #67 #67.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#67 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFvuUMBpfUATVb6r8bQOzdfN8csEf64ks5qcyCogaJpZM4ITfhu
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.