KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Avoid bottlenecks when working with Shared Objects
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac & Win
Published On: July 13, 2020

When working with shared objects, it is important to avoid bottlenecks by placing any time-consuming code outside of the Use block of code.

For example, the developer should avoid placing time-consuming code within the Use block of code:

Use ($shared_obj)
   // process data or perform calculations
   $shared_obj.prop1:="omega"
End use


Instead of processing thwe data or performing calculations inside of the Use block of code, the developer should perform those tasks outside of the Use block:

// process data or perform calculations outside the Use block
Use ($shared_obj)
   $shared_obj.prop1:="omega"
End use