The test page for daily rdahmm portlet based on managed bean is:
http://156.56.104.161:8080/gridsphere/
We got more problems than expected when doing this. Most of computation about state change and missing data is now moved to a managed bean, which is a java class running on server side. Since java codes are running much faster than javascript, and the page size is also brought down from 6 MB to 770KB, the loading and coloring time is a lot shorter now. Just that a page refresh is needed when the managed bean is invoked. In order to reduce the times of refresh, the managed bean is only invoked when a new date is selected, for the color calculation of all stations. Station markers in a specific region are still created only when we are moving to that part of map, but their colors are calculated beforehand with all other stations when the managed bean is invoked. Calculating the colors for all stations instead of only the stations in a region results in a delay that is 7-8 times longer, but the absolute value is just from 4ms to around 30ms, which is trivial for the whole page refresh procedure.
Sunday, April 6, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment