in reply to Re: improving speed in ngrams algorithm
in thread improving speed in ngrams algorithm

“...do it in C though, even for a novice. If it's really time critical I would write it as XS.“

This statement is not good just crap, sorry. Because nothing with C/XS is simple for a novice. Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Replies are listed 'Best First'.
Re^3: improving speed in ngrams algorithm
by LanX (Saint) on Jun 11, 2019 at 21:39 UTC
    The OP didn't ask about "easy" but "speed".

    I'm sure there are already ready to use C programs for this available.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice