Construct2 blocks VS Javascript logic speed

  • Do you think that a well-optimized algorithm, written with Construct2 logic blocks, which takes about 7 seconds (on a PC) to find all the possible words in a table of letters of size 4x4 fro a vocabulary of about 60.000, can significantly improve rewritten directly in the form of Javascript Plugin?

    Thanks in advance for any opinions ! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Nope, unless the events aren't that a well-optimized.

    I'd suggest using different lists, based on consonant, vowel, consonant.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It could be faster, but you'll get more of a speed improvement by reworking the algorithm used.

    With a 15x15 grid of letters I can get it to find all possible words from a 60k word list in about 0.6 seconds. The biggest speedup is from loading the word list into a dictionary object which allows you to know if a word is in it with the "has key" condition.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)