-
January 22nd, 2007, 04:20 PM
#1
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
-
January 23rd, 2007, 11:09 AM
#2
Hi,
You understand perfectly ![Smile](images/smilies/smile.png)
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](images/styles/AestheticaGreen/misc/quote_icon.png)
Originally Posted by
smartboy
Ok, when does loadEngineMinimal make sense and when does loadEngine?
As you prefer
![Quote](images/styles/AestheticaGreen/misc/quote_icon.png)
Originally Posted by
smartboy
Does loadEngineMinimal need less memory / cpu!?
No there aren't differences.
![Quote](images/styles/AestheticaGreen/misc/quote_icon.png)
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
-
By hungtt in forum General
Replies: 1
Last Post: January 4th, 2011, 12:07 PM
-
By webfg in forum Client SDKs
Replies: 2
Last Post: April 13th, 2009, 11:07 AM
-
By indrajit in forum General
Replies: 18
Last Post: March 19th, 2008, 10:00 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 10:02 AM.
Bookmarks