Today my goal is to make Jmol load at least twice as fast as it does now.
I think I know how to do this. My premise is:
1) The slowness of Jmol loading on a web page has to do with internet
transfer rates.
2) We do not need detailed line counts for user-based debugging purposes.
3) Most applications use one or two file types.
4) Most applications use only a limited number of Jmol capabilities.
Here's the plan:
1) The key is getting the transferred file size down.
2) By setting debug="off" we reduce the size of the overall package by
about 30%. That in itself is considerable.
3) By pre-specifying what file types will be used, Jmol.js can build an
applet tag that only loads code for those specific file types,
or at least a small subset containing them and a few others.
I suggest something like:
jmolSetFileTypes("xyz,mol,cif,pdb")
or even,
jmolSetFileTypes("file=xxxx.class,file=yyyy.class")
which means simply that you will provide your own .class files for
the specific readers you need.
4) By pre-specifying what options will be used, Jmol.js can build an
applet tag that only loads a limited amount of the functionality
capable in Jmol. I suggest:
jmolSetOptions("nobio,noxtal,nothis,nothat")
Here's how we get there:
1) We modify Jmol to be more flexible in its file loading. That I
can do today with no problem. Kind of a pain, but it will be worth it.
2) We modify Jmol to be more flexible in regard to loaded options. This
is trickier, because we will have to automatically produce appropriate
menus. That's easier than it might sound, because we actually do that
anyway, but it will take more considered thought.
3) We modify Jmol.js to deliver different sets of jar files depending
upon user specifications.
4) We do some road tests to see how much of a difference all this makes.
I'm starting on (1) now.
If someone else could work on the Jmol.js part, that would be great.
If someone has better ideas, tell us now!
Bob
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers