Results 1 to 2 of 2

Hybrid View

  1. #1
    Member
    Join Date
    Dec 2006
    Location
    Karlsruhe
    Posts
    3

    Difference loadEngine and loadEngineMinimal

    Hi,
    can somebody please explain what is exactly the difference between loadEngine and loadEngineMinimal.

    What I understood so far:
    loadEngine: I must point the method to lsengine.html with a config file where I set all the settings for the Engine (domain, host, port, dataadapter). The engine starts connected.

    loadEngineMinimal: I point to the lsengine.html and with the method onEngineReady I set domain, host, port, dataadapter for the engine I started. The only difference is that I have to connect to the stream with lsEng.changeStatus("STREAMING") myself

    Ok, when does loadEngineMinimal make sense and when does loadEngine?
    Does loadEngineMinimal need lees memory / cpu!?
    Why does the dojo-demo use loadEngineMinimal and not loadEngine? Would the demo not work with loadEngine?

    Smartboy

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    You understand perfectly
    In our API there are 3 ways to link a PushPage with an lsengine.html page; those methods are an extension of each other to make the stuff to do simpler.
    In the order you find
    setEngineReference - loadEngine - loadEngineMinimal
    btw, while the setEngineReference is still unique in his features and must be used in some cases (eg when you have more than one page with PushPage objects), loadEngine and loadEngineMinimal are completely equivalent.
    The loadEngineMinimal was in fact introduced to avoid the needs for another js file (lsengine_config.js) in your application.

    So:
    Quote Originally Posted by smartboy
    Ok, when does loadEngineMinimal make sense and when does loadEngine?
    As you prefer
    Quote Originally Posted by smartboy
    Does loadEngineMinimal need less memory / cpu!?
    No there aren't differences.
    Quote Originally Posted by smartboy
    Why does the dojo-demo use loadEngineMinimal and not loadEngine? Would the demo not work with loadEngine?
    Demos developed before the introduction of loadEngineMinimal make use of loadEngine, while newer demos use loadEngineMinimal, that's all.

 

 

Similar Threads

  1. Difference between DISTINCT and MERGE mode?
    By hungtt in forum General
    Replies: 1
    Last Post: January 4th, 2011, 01:07 PM
  2. Difference between createEngine and seekEngine
    By webfg in forum Client APIs
    Replies: 2
    Last Post: April 13th, 2009, 12:07 PM
  3. Replies: 18
    Last Post: March 19th, 2008, 11:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 03:21 PM.