in reply to Re^2: Combinations of lists, etc (updated)
in thread Combinations of lists to a hash

My hours of messing around was a secondary consideration in this case, because I thought loading a module would be slightly less efficient than in-line code, especially for this regularly hit situation (i.e. every page load on my website).

Yes, the code could certainly be inlined, hence the ::Tiny. Although depending on how many items you're generating, a speed boost in generating combinations by a factor of roughly 10x can be achieved with XS modules such as Set::Product::XS.

Don't forget to include me in the credits. My name is spelt: "Some Kiwi Novice @ PerlMonks".

Done :-)

Replies are listed 'Best First'.
Re^4: Combinations of lists, etc
by tel2 (Pilgrim) on Oct 07, 2019 at 19:57 UTC
    The number of items being generated is pretty low - usually a hundred or less.  For that I thought the loading of a module would be a relatively high overhead for a job which I hoped could be done with a small amount of non-module code, (and the answers have confirmed it's just a small amount of code).  Thanks for the Set::Product::XS tip.

    And thanks for the credits, haukex.  At last I've reached a level of fame in the Perl world.  Good to meet another person who knows how to take humour seriously.