From: gautier_niouzes@hotmail.com
Subject: Re: stock managing software
Date: Sat, 4 Apr 2015 16:12:22 -0700 (PDT)
Date: 2015-04-04T16:12:22-07:00 [thread overview]
Message-ID: <8813acfd-a298-420f-b3e1-980e2781790a@googlegroups.com> (raw)
In-Reply-To: <56c7aa4f-f44d-46ba-83d0-2a6bd0d28a6a@googlegroups.com>
Congrats!
Looking at the code, if you are concerned by the performance of your CSV parser (a comment there seems to hint that), there are two improvements possible:
- avoid unbounded to string conversion at each character parsed
- moreover, a bright person had the idea to parse a line once and get all the field boundaries in one go. See the code here:
http://sf.net/p/excel-writer/code/HEAD/tree/extras/csv.ads
http://sf.net/p/excel-writer/code/HEAD/tree/extras/csv.adb
For large CSV files, it makes a big difference in terms of performance.
HTH
_________________________
Gautier's Ada programming
http://gautiersblog.blogspot.com/search/label/Ada
NB: follow the above link for a valid e-mail address
prev parent reply other threads:[~2015-04-04 23:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-04 19:58 stock managing software marioblunk.alere
2015-04-04 21:54 ` Jeffrey Carter
2015-04-04 22:10 ` brbarkstrom
2015-04-04 23:12 ` gautier_niouzes [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox