Uniface getting slow-motion with bigger Strings
Author: hansen@ahp-gmbh.de (-GHAN-)
Hi everybody, i'm using the uxmlwriter to create XML-streams to transport occurences from my Entity from one component to another. Works well so far, but as the number of records grow, uniface goes slow-motion! Retrieving a 1000 Records of an Entity containing 180 fields takes (on this machine) 1.5 minutes! The volume of the data is approx. 5.5MB. The Code does nearly the same as the xmlwriter does, so you can test it yourselves by doing: -[CODE follows]----- putmess "start : %%$clock" $1=1 while($1 < 1000) $2 = 1 while ($2 < 180) vString = "%%vString%%%XMLTEEEEEEEEEEXT"; ### simulating a XML-Tag $2 = $2 + 1 endwhile $1 = $1 + 1 endwhile putmess "End : %%$clock" -[CODE ends here]--- You now might say "Dude, get your data in shape! Nobody needs all these records ever!" and that might be true. (in fact i just got a call containing a similiar message. Thx 2 A.H.) But when you need to transfer data using xml then Uniface internally uses a STRING-CLASS (of a sort) to hold the data! Afterwards you transfer the data in blocks to where you want it ... lets say a STRING !? ;) While using XMLSave i didnt experience this performance slowdown! I tried to trick Uniface by declaring my target variable to "xmlstream" but this didn't help it ;) And now don't tell me to use XMLSave instead ;) ... this wont solve my problem !!! So ... does anybody know about this? best Regards -GHAN-




