-
-
Notifications
You must be signed in to change notification settings - Fork 10
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 jekyll related posts functionality (--lsi, classifier-reborn, gsl, nmatrix, narray, Numo:NArray, Numo:GSL) #83
Comments
Found some benchmarks comparing various underlying options (though they seem rather outdated)
|
Looking at site build times in #86 (comment) with/without In light of that.. this thread about optimisations may not even be relevant anymore.. |
👋 Hi, I stumbled onto this thread from jekyll/classifier-reborn#193. A few notes that you might find helpful:
Hope that helps. I appreciated some of your comments on some of the libraries so I thought I'd share some notes with you! |
@mkasberg Thanks for the notes and insights :) Much appreciated. I’d have to look deeper at things (has been a long time since I did), but if the related_posts part isn’t there anymore then I guess I must have removed it from my templates at some stage. I know I had it at one point. Maybe the speed thing was why I removed it. If/when I get back to looking at this I’ll make sure to check that out first! |
|
|
(See also: #1)
Jekyll can "create an index for related posts" using the
--lsi
build command option, which uses theclassifier-reborn
gem to create a site variable of related posts:More info on Jekyll's usage of LSI:
The
gsl
gem can make use ofnmatrix
andnarray
:narray
is in maintenance mode, and directs tonumo-narray
:numo-gsl
provides a GSL interface for Ruby withNumo::NArray
:I'm unsure if the numo gems can be used with
classifier-reborn
, and which ofnmatrix
/narray
provide better speed; but I created an issue asking:As noted in jekyll/classifier-reborn#193, i'm not sure if
classifier-reborn
is actively updated/maintained.nmatrix
was last updated in 2018, and at least one issue claims thatNumo::NArray
outperforms NMatrixrb-gsl
was last updated in 2017, and claims compatibility only with GSL versions up to v2.1:I've asked if it is still maintained, but my guess is probably not:
My comment in reply to the following StackOverflow question:
See Also
The text was updated successfully, but these errors were encountered: