meddle0x53 / blogit

OTP application for generating blog posts from a Git repository containing markdown files.
MIT License
42 stars 7 forks source link

Loading time too long #6

Open 9to1url opened 4 years ago

9to1url commented 4 years ago

This is same as issue#7 on blogit-web.

I only have 1800 posts in blog, but the initial loading time took 3 hours.

I think one thing at least go wrong is even already has timestamps in md file still call Git log to get it again.

9to1url commented 4 years ago

https://github.com/meddle0x53/blogit_web/issues/7

meddle0x53 commented 4 years ago

Is it possible to give me access to your blog source? I'll find time to try and make lighter git repository provider for you.

9to1url commented 4 years ago

I already fork blogit and temp fix it. After checking your source code, just add the logic test if already has created_at will not call git_cli. But the code not tidy, so didn't submit PR. The total loading dropped from 3 hrs to 1min.

On Tue, Mar 10, 2020, 2:05 AM meddle notifications@github.com wrote:

Is it possible to give me access to your blog source? I'll find time to try and make lighter git repository provider for you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/meddle0x53/blogit/issues/6?email_source=notifications&email_token=AOL2XV7ZVRTSKX3QGM6Y46DRGXKBPA5CNFSM4LDGMHMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOKEN6A#issuecomment-596920056, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOL2XV4MLUZ6AK5ZTEB4TGTRGXKBPANCNFSM4LDGMHMA .

9to1url commented 4 years ago

I refactored the code a bit, may already ok for a PR. Also is there any git elixir native client that has better performance than git_cli ?