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

Question: how to improve the preformance? #71

mehdisadeghi opened this Issue Jan 2, 2018 · 0 comments


None yet
1 participant
Copy link

mehdisadeghi commented Jan 2, 2018

I spent sometime today and tried to use memoist to modify jekyll-tagging to cache some functions such as add_tag_cloud hoping that my website will build faster.

It has a limited number of posts (50) and it takes around 9 second to build on a Core i5 2.5GHz CPU with plenty of RAM. If I disable jekyll-tagging it builds in 2.5 seconds. So 6.5 seconds are spent for building the tag pages.

By profiling with ruby_prof I realized there are some expensive functions in the code. One such function is replace_diacritics, another one is add_tag_cloud and some time is spent for looping over sequences here and there. My memoizing efforts were fruitless.

So the question is how we can improve the build performance? I appreciate any ideas.

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