Hi,I have started implementing a nice object model in LS with different script libraries.
I have a base object with its library, using other libraries, for logging and audit.
Other classes living on their own libraries derive from this object.
Now at a certain time, going through loops i have the impression that the runtime goes checking on the other libraries to see if the script has changed while running.
The facts that lead me to this conclusion are:
I put time tracing (getthreadinfo) around and inside a method call. The method is defined on a class in another library.
Running the test on a server based database adds 15 ticks per method call compared to running the same code on a local replica.
The overhead is also eliminated if I put all class definition in one script library.
While developing with multiple programmers on a project with an object model is already difficult in staying out of libraries where another person is editing, this adds another complexity if you want the code to be performant.
To give an idea a certain form opens in 6.5 second with the code in multiple libraries
and in 0.5 seconds if all the code is in 1 library.
Any suggestions please? (like disabling the dependency check for code changes in script libraries in some way, preferably not by copying code in files)
btw. :tested in 7.03 and 8.5 clients against 7.03 server.
Sample code is difficult, because of the complexity of the code.
Jo.