Is this correct?
Thanks.
--John Olbert
javo...@snet.net
--
John Olbert
2. Desktop can execute 3-4 commands per cycle; device can execute one or
less (x3-5)
3. Desktop has 64 (128 for dual channel) bit DDR/DDR2 memory; device
probably has 16 or 32 bit SDR @100MHz. (x50 on memory moves).
4. Desktop is CISC, device is RISC, CISC commands are shorter on average due
to variable length and each does more. That hits device hard because of tiny
cache and very slow memory. (x2)
5. Desktop uses highly optimized JIT; device uses fast compact JIT which
produces especially slow code on NETCF V1 non-ARM CPUs. (x10)
Let's see: 4.5x4x2x10 = 360. Sounds about right.
By the way, code for ReadXml() was optimized in NETCF V1 SP2 (current
version is SP3), it's about twice as fast as in RTM.
JIT was optimized and unified for all CPUs in NETCF V2 and is about twice as
fast for ARM (which was already fastest in V1).
You might get x5 gain for SH4 with NETCF V2 or even more.
Now, you also could optimize ReadXml():
1. Make sure schema is preloaded into data set, no schema means inference
and that is very slow.
2. Map columns to attributes and use related tables, not nested. I've posted
utility to make this change for existing XML/Schema, please use search below
if you interested.
3. Avoid DateTime columns as they are very slow to parse. If you need
DateTime, consider passing ticks instead.
Keep in mind it would never be as fast as desktop, but you should be able to
make speed acceptable.
--
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
*** Want to find answers instantly? Here's how... ***
1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
"John Olbert" <som...@snet.net> wrote in message
news:7CEA5B7D-B6C9-4149...@microsoft.com...
-Chris
"Ilya Tumanov [MS]" <ily...@online.microsoft.com> wrote in message
news:43e008c8$1...@news.microsoft.com...