Discussion:
TCursor performance compared to DynArray Question
(too old to reply)
Pierre Charbonneau
2004-11-23 02:45:35 UTC
Permalink
Hi,

To get highest performances as possible in time response from ocxServer,
instead of using a qlocate on a TCursor variable (pointing a the
HTMLtemplates table used to builf HTML response file as we see in the
Hercules webServer example from installation CD of Paradox 8) I load all the
table content to a global Dynamic Array (DynArray[] String) at DoStartUp
method as a "cache memory" and in other methods I call the DynArray String
instead of TCursor as handling request functions.

What do you think about that ?

Pierre
Tony McGuire
2004-11-23 05:00:28 UTC
Permalink
Depends on how much info is in that table/dynarray. Only issue I can see is
memory/resource, but I doubt you are using enough to worry greatly about.

I took to placing some of the template stuff in the PROC section, rather
than use the templates. I found too many situations where I wanted a slight
modification in the middle, which meant it didn't qualify as a template any
longer.

Could have made it a method, I suppose, but I just found it handy to have
all template stuff (not in the templates.db) in one window.



--
--
Paradox Support http://www.thedbcommunity.com/support/

Tony McGuire
_____________

Loading...