Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Questions: Table overheads & Addtable()?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-02-2007, 12:40 PM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 117
Awards Showcase
Beta Tester 
Total Awards: 1
Question Questions: Table overheads & Addtable()?

Designing a prefs system:
It would be easiest to use a table, with the load & save functions already in place, either as key pairs, or as a single row, with columns for each pref.

Questions:
  • What is the overhead (memory space/access time) of a table, compared to using an array?
  • Is that overhead different for, say, 2 columns by 10 rows compared to 10 columns with 1 data row?
  • Given that there is a table.dispose method, is there a runtime table.create so that the load/save routines could be used to deal with an array of prefs (if that is lower in persistent runtime overhead)?

Maybe someone's done this before - I can't see an obvious example in the fora or example files.
Reply With Quote
  #2 (permalink)  
Old 06-02-2007, 01:12 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

Arrays are more efficient than tables.
However you can't sort an array, filter it or show it in a table.
LoadCSV and SaveCSV will be quicker than implementing your own load / save mechanism.
I recommend you to use tables for databases with less than 50,000 records. Larger databases should be handled with the SQL library.
Reply With Quote
  #3 (permalink)  
Old 06-02-2007, 01:25 PM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 117
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks, that was quick!

I take it that there is no runtime table creation - which would be handy here. That or the option to save the filtered part of a table directly, without copying to a temporary table.
Reply With Quote
  #4 (permalink)  
Old 06-02-2007, 03:10 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

Yes, you can't add a table at runtime and you can't save a filtered table directly.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
A few questions regarding FormLib N1c0_ds Questions & Help Needed 6 09-19-2008 03:34 AM
Questions on Table component dan kabestan Questions & Help Needed 6 06-26-2008 09:40 AM
Small questions on Table component and Help window dan kabestan Questions & Help Needed 5 04-12-2008 06:49 AM
More SQL questions HARRY Questions & Help Needed 2 01-04-2008 11:15 AM
SQL Questions tcgoh Questions & Help Needed 7 12-31-2007 10:10 AM


All times are GMT. The time now is 02:04 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0