I'm working a lot with text in navison and now when working with Navison three tier in 2009 it is much slower than classic.
I made some test code. If i run it in classic it takes 1 ms and in three tier it takes 2000 ms
Could three tier really be that slow. Or have i missed some configurations.
tt := 0;
REPEAT
tt := tt +1;
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
bb.ADDTEXT('<name>testtesttesttesttesttesttesttesttesttesttesttesttest</name>');
UNTIL tt>200;
0
Comments
And of course, have you tried your code after a "warmup" phase? There is always a cost of performance on a first run of newly created code, (at least from what i experienced).
You can use directly stringbuilder without a com wrapper (But it work only on RTC, not Classic Client):
New Variable:
Name DataType Subtype Length
StringBuilder DotNet 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Text.StringBuilder
Bye
Matteo