Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

Sluggish MIDP emulation

Thread view: 
Tim Tyler - 27 Oct 2005 08:21 GMT
I've been using the latest version of Sun's Wireless Java toolkit to
do some MIDP development.

The MIDP emulator is like a slug.  My phone runs MIDP apps *much*
faster than my desktop PC :-(

The issue makes testing my app into a painful, boring, and tedious
process.

Are there other MIDP 2.0 emulators out there that are a bit less sluggish?

Why is Sun's runtime so slow in the first place?  Is this just a
"reference implementation" - which nobody is supposed to use to do
any real work - or what?
Signature

__________
|im |yler  http://timtyler.org/  tim@tt1lock.org  Remove lock to reply.

Roedy Green - 27 Oct 2005 08:52 GMT
>Why is Sun's runtime so slow in the first place?

At what level does the simulation work?  If there are simply dummy
native classes, I would expect it to zip along.  If it actually
emulates the ARM chip, or whatever is in your phone, on a register
level, I can see why it would be a slug.

I remember reading that simulations of the IC layouts for  Pentium
designs of a few seconds of code took days.

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Darryl L. Pierce - 27 Oct 2005 12:46 GMT
>>Why is Sun's runtime so slow in the first place?
>
> At what level does the simulation work?  If there are simply dummy
> native classes, I would expect it to zip along.  If it actually
> emulates the ARM chip, or whatever is in your phone, on a register
> level, I can see why it would be a slug.

The emulator doesn't emulate the CPU on a handset. It's just a KVM
instance that uses the OS stack for networking and emulates the UTI-9
keypad graphically.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Homepage: http://mcpierce.multiply.com/
"Bury me next to my wife. Nothing too fancy..." - Ulysses S. Grant

David N. Welton - 27 Oct 2005 11:19 GMT
> I've been using the latest version of Sun's Wireless Java toolkit to
> do some MIDP development.
[quoted text clipped - 10 lines]
> "reference implementation" - which nobody is supposed to use to do
> any real work - or what?

I've found it pretty quick for Hecl development.  There is a neat open
source emulator here:

http://www.barteo.net/microemulator/

but I don't know that it's any faster than what Sun puts out.

Signature

David N. Welton
- http://www.dedasys.com/davidw/

Linux, Open Source Consulting
- http://www.dedasys.com/

Tim Tyler - 27 Oct 2005 22:23 GMT
David N. Welton <davidw@dedasys.com> wrote or quoted:

> > Are there other MIDP 2.0 emulators out there that are a bit less sluggish?
>
[quoted text clipped - 4 lines]
>
> but I don't know that it's any faster than what Sun puts out.

That crashes with:

java.lang.ClassNotFoundException: javax.microedition.lcdui.game.GameCanvas

...on my application.

The documentation doesn't seem to mention the MIDP version supported.

I assume that this means that they have not supported MIDP 2.0.
Signature

__________
|im |yler  http://timtyler.org/  tim@tt1lock.org  Remove lock to reply.

Darryl L. Pierce - 27 Oct 2005 12:45 GMT
> I've been using the latest version of Sun's Wireless Java toolkit to
> do some MIDP development.

What version? Is it the beta of 2.3 or the release of 2.2?

> The MIDP emulator is like a slug.  My phone runs MIDP apps *much*
> faster than my desktop PC :-(

And what other applications are running on your desktop at the same
time? Are you running the profiler (which degrades performance
significantly) while running your application?

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Homepage: http://mcpierce.multiply.com/
"Bury me next to my wife. Nothing too fancy..." - Ulysses S. Grant

Tim Tyler - 27 Oct 2005 22:09 GMT
Darryl L. Pierce <mcpierce@gmail.com> wrote or quoted:

> > I've been using the latest version of Sun's Wireless Java toolkit to
> > do some MIDP development.
>
> What version? Is it the beta of 2.3 or the release of 2.2?

2.3.

Before that I was on 2.0 - which was just as slow.

> > The MIDP emulator is like a slug.  My phone runs MIDP apps *much*
> > faster than my desktop PC :-(
>
> And what other applications are running on your desktop at the same
> time?

A number - but the task manager seems to think that between them
they only take up about 6% of my total CPU power.

Before you go any further with this, I have 512Mb of memory most of which
is unused - and applications and applets run at a reasonable rate of
knots.

It's the MIDP emulator which behaves like a slug - not the rest of my
machine.

> Are you running the profiler (which degrades performance
> significantly) while running your application?

No: I run like this:

Java/WTK23/bin/emulator -Xdevice:QwertyDevice -classpath
 preverified;resources -Xdescriptor:<my_jad_file.jad>
Signature

__________
|im |yler  http://timtyler.org/  tim@tt1lock.org  Remove lock to reply.

Darryl L. Pierce - 28 Oct 2005 11:59 GMT
>>>I've been using the latest version of Sun's Wireless Java toolkit to
>>>do some MIDP development.
>>
>>What version? Is it the beta of 2.3 or the release of 2.2?
>
> 2.3.

That's still beta, is it not?

>>>The MIDP emulator is like a slug.  My phone runs MIDP apps *much*
>>>faster than my desktop PC :-(
[quoted text clipped - 11 lines]
> It's the MIDP emulator which behaves like a slug - not the rest of my
> machine.

It's being affected by your total environment. If you have too many
things running, then it's not surprising that something's slowed down.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Homepage: http://mcpierce.multiply.com/
"Bury me next to my wife. Nothing too fancy..." - Ulysses S. Grant

Tim Tyler - 28 Oct 2005 21:00 GMT
Darryl L. Pierce <mcpierce@gmail.com> wrote or quoted:

> >>>I've been using the latest version of Sun's Wireless Java toolkit to
> >>>do some MIDP development.
[quoted text clipped - 4 lines]
>
> That's still beta, is it not?

It is.

As a beta tester, I think Sun should improve their app's performance.

> >>>The MIDP emulator is like a slug.  My phone runs MIDP apps *much*
> >>>faster than my desktop PC :-(
[quoted text clipped - 14 lines]
> It's being affected by your total environment. If you have too many
> things running, then it's not surprising that something's slowed down.

<fx: sighs>
Signature

__________
|im |yler  http://timtyler.org/  tim@tt1lock.org  Remove lock to reply.

Darryl L. Pierce - 05 Nov 2005 14:05 GMT
>>>>>I've been using the latest version of Sun's Wireless Java toolkit to
>>>>>do some MIDP development.
[quoted text clipped - 8 lines]
>
> As a beta tester, I think Sun should improve their app's performance.

But as a beta tester you should also realize that a beta product isn't
being performance enhanced as much as it's having bugs worked out of it.
Slow performance isn't a bug.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.