>I'm unsure where the bottleneck(s) lay.
>1) When storing the data to the user space, I have turned on automatic
>extendibility. Once the initial capacity fills, it takes noticeably longer to
>complete data storage.

I never noticed such a effect, what doesn't mean that there is none. But i 
never noticed it.

>Does OS/400 actually create a new user space with a
>larger size, then copies the data, or simply extend the current space?

I think the latter is it.

>it be better to handle storage in a file, say keyed by handle and date/time

 From performance point of view, i didn't saw an object on an AS/400 that 
can be faster written or read than a user space.

>  I don't know anything about data queues, but I do anticipate
>generating pages up to 2 MB in size. All I need to do is store a varying
>amount of data, and read it in FIFO manner.

Forget the data queues.

>2) Reading from the user space appears to take little time, I'm not terribly
>concerned here.

It is fast.

>3) Formatting HTML. I take "unformatted" data, along with some control fields,
>and generate the appropriate HTML code on the output stage. Currently, this
>involves many %trim/%trimr operations on the output data.

And that is it what eats up your CPU.

>  I am currently using
>size 32000 workspaces for the data (since this is the current RPG/IV limit).
>String operations take a long time. I thought about possibly passing data
>through pointers, but I still need to concatenate the data to an output
>variable before writing it.

Or you know how long the data to append is and shift the pointer in the 
output field with a simple add.

>4) Writing the data to the IFS takes some time. Disk utilization obviously
>increases. Hopefully in the next few days I can implement standard output and
>see if writing data is an actual bottleneck.

You will be disappointed. IFS is fast, too. (Not as fast as user spaces, i 
think ;-)

>I'm hoping someone has done similar work before, and any tips would be greatly

Did you look into Net.Data? Your situation sounds as if you might love it. 
I turned from CGI-programming to Net.Data as it's very powerful and makes 
development fast and easy. And performance is well, too!

Mit freundlichen Grüssen / best regards

Anton Gombkötö

e-mail Office   :       mailto:Anton.Gombkoetoe@avenum.com
Homepage        :       http://www.avenum.com

Avenum Technologie GmbH
Brigittenauer Lände 50-54, Stiege 6     Salzburger Strasse 29   Dreifelder 
Strasse 4
A-1200 Wien / Austria                   A-5163 Mattsee          D-70599 

Tel./phone      :       +43-1/92101-148         +43-6217/5995 - 
0               +49-711/4411 116
Fax             :       +43-1/92101-300         +43-6217/5995 - 
13      +49-711/4411 563

Avenum ist der Zusammenschluss von AS Software und Black System.


| This is the WEB400 Mailing List!
| To submit a new message, send your mail to WEB400@midrange.com.
| To subscribe to this list send email to WEB400-SUB@midrange.com.
| To unsubscribe from this list send email to WEB400-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.