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.


CSV file read still slow in V6.01 but other tasks much improved


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-09-2008, 02:41 AM
Junior Member
 
Join Date: Apr 2007
Location: Kerikeri, New Zealand
Posts: 21
Send a message via MSN to HarleyM
Default CSV file read still slow in V6.01 but other tasks much improved

Hi,

I've had a program on the go for some time that reads & writes data to a CSV file (primarily to allow easy importing into excel) The program has now been updated to v6.01 but I'm not seeing any dramatic speed improvements on the device, particularly with the initial load which includes reading in the CSV file into a table (now around 100 records, 8 fields) using table.loadCSV & then inserting a column within the table. (Adding a column & moving the contents of another column into it, thereby creating a clear column in the middle)

Unfortunately it all takes around 32 seconds, which is only a slight improvement on the 35secs in the previous version. Is there any reason as to why this might be the case or a technique that might improve things.
Reply With Quote
  #2 (permalink)  
Old 01-09-2008, 06:16 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

The CSV loading method was improved.
This is not Basic4ppc code but rather .Net code so the improvement is not too significant.
LoadCSV is in fact faster in .Net CF 1.0 than .Net CF 2.0 because of a structure change in the .Net control.

The solution is to use a SQL database instead. It will be much faster.
Reply With Quote
  #3 (permalink)  
Old 01-09-2008, 10:51 AM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 141
Default

Dear Harley and Erel,

Isn't this a rather long time anyway? I have a program which loads two csv databases, one with 10 columns (244 records) and one with 2 columns (100 records). That takes less than 10 seconds.
(And the program was compiled with version 5 !).

Just curious.

all the best / Björn
Reply With Quote
  #4 (permalink)  
Old 01-27-2008, 11:18 AM
Newbie
 
Join Date: Sep 2007
Location: Portugal
Posts: 1
Default

Hi! Realy new in this forum, i´m a little bit surprised, because
i use to load a 80000 "record" csv database with 12 columns from a 13Mb file in
less then 10 seconds.
It's not normal?

Also curious ...
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
Best way to read text file. ikaplan Questions & Help Needed 8 11-04-2008 04:36 PM
read Exel file? Byak@ Questions & Help Needed 2 10-21-2008 11:30 AM
Improved Close Event RandomCoder Basic4ppc Wishlist 5 09-26-2008 07:00 PM
XML file read stratus Questions & Help Needed 8 06-20-2008 04:03 PM
Struggle to read a .txt file into TextBox? HARRY Questions & Help Needed 2 02-26-2008 05:39 PM


All times are GMT. The time now is 03:41 AM.


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