THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/12/2005 at 06:03, xxxxxxxx wrote:
Cinema 4D Version: 7 XL
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
Hello out there,
I am quite new on coding C.O.F.F.E.E. To start my lessions on filescripting, I am coding a menuplugin to import OBJ-files.
Unfortunately C.O.F.F.E.E, thus plattform independent, is horrible slow (I think because it is an interpreter, although compiling did not make it faster).
Here is the way the file is read:
I read the file into a long string with BaseFile->Readstring. Then I am trying to splitt this string linewise and access data in the line.
Therefore I am searching CRLF-signs in te string with the strstr-function. I got some tipps from other users, that this function is very slow. (Hello Maxon: Is it like this and if, why?)
Does anybody have a tuning-trick to speed up string-operations like these in C.O.F.F.E.E., perhaps using other functions than strstr/strchr?
Or does anybody have a tipp for me, how reading a file could be done quicker?
As I am not very familiar with VC++ and because it would no longer be plattform-idependent I would prefer not to recode in C++-SDK (even if it runs much faster then).
Thanks for help everybody,
Ps: Sorry for my English, I did not speak or write it for longer now...