|
Home > Archive > Programming with dBASE > June 2005 > String with over 1MB size - performance concern
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
String with over 1MB size - performance concern
|
|
| Jan Hoelterling 2005-06-25, 7:23 am |
| Hi Folks,
as part of my printing concept, I offer users the option to create templates
with M$ Word and save them as RTF files. I then read these files and replace
specific tags with data from the application. This works pretty well. My
approach is to read the entire file into memory at once, I then have a
pretty fast parser that "fills in" the tags. My concern and question is
about some files I've seen recently with embedded graphics. These files are
easily over 1MB because of the way images are encapsulated. I've runs some
tests and have the performance in dBase is excellent when reading this size
file into a single string, manipulating it and writing it back. Is there any
reason I need to be concerned about strings of that size? At what point does
the string size become an issue? What are the limits for string size?
Thanks for any thoughts...
Jan
| |
| Ken Mayer [dBVIPS] 2005-06-27, 11:23 am |
| Jan Hoelterling wrote:
> Hi Folks,
>
> as part of my printing concept, I offer users the option to create templates
> with M$ Word and save them as RTF files. I then read these files and replace
> specific tags with data from the application. This works pretty well. My
> approach is to read the entire file into memory at once, I then have a
> pretty fast parser that "fills in" the tags. My concern and question is
> about some files I've seen recently with embedded graphics. These files are
> easily over 1MB because of the way images are encapsulated. I've runs some
> tests and have the performance in dBase is excellent when reading this size
> file into a single string, manipulating it and writing it back. Is there any
> reason I need to be concerned about strings of that size? At what point does
> the string size become an issue? What are the limits for string size?
The limits on string size are mostly related to the amount of memory
available to the computer running the application, as I recall. Most of
the time, you shouldn't have any problems ...
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
|
|
|
|
|