• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Application for Handheld-Jornada (133Speed)

 
Sekhar Venkat
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My respects to Java Gurus,
I have an extremely complex question for a java application that I am building for a handheld device. I would be grateful if you could take the time to respond to me.Thanks in advance.
Question:
"Handheld devices when compared to a typical pentium 3 have extremely poor performance. This poor performance when investigated in great detail was concluded to be due to instantiation of new objects. For instance a typical module has a frame, a few panel, menu, status bar, around 4 dozen fields such as textfields, dates, combo boxes etc. All the time was taken up in instantiating these objects. So every time a new module was opened it had to instantiate everyting all over again. I assume that the solution is to keep a pool of fresh objects always available and keeping it replenished in a low P thread. My experiments with using static objects have convinced me that I should not try to solve the problem using static objects."
Has anyone ever worked on maintaining a pool of objects that get garbage collected when de-referenced, and that get replenished when the fresh object count drops below a certain level?
or if anyone has another solution for performance on handhelds let me know.
Hardware/Software constraints - 133HPJornada processor, JDK1.1.8, use of lightweight bali components as opposed to heavy weight awt components. Cannot use swing etc. becuase of limitations of handheld.
Any responses would be appreciated.
Regards,
Sekhar
720-330-8837 (daytime)
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have implemented object pool pattern with reusable business objects. Processes "borrow" an object from this pool, do the processing and return the object to the pool. Once returned, we reset the object to its initial state - just what they do at rental car shops after you return the car, before it is given to another customer.
However, I read from your question, that the objects you are talking about are all GUI objects, not business objects. I don't know if it is recommended to reuse GUI objects like panels, frames, menu etc.
Anyone??

------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java2 Platform.
 
Sekhar Venkat
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply,
I would be interested in seeing your code.
Could you email it to me.
Thanks
Sekhar
 
Samuel Wolfe
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not going to be much help here, but I would be fascinated to learn more about programming on handheld platforms...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic