Translation of "formula parser instance" in Chinese
We couldn’t find this entry. Showing approximate results. Check your spelling or suggest adding this term to the dictionary.
公式解析器实例
Construct a formula parser instance in a loop
在循环里构造公式解析器实例
Set the formulas to be method will usually be called after a formula parser instance is available
设置需要运算的公式,有了公式解析器实例之后一般调用此方法
Reuse formula parser instance as far as possible
尽可能重用公式解析器实例
Obtain a formula parser instance which can ensure the thread security in the background but cannot ensure the thread security in the foreground. To ensure the thread security in the foreground, please call the following method
取得一个后台线程安全,但是前台不保证线程安全的公式解析器实例,前台如果需要线程安全,请调用:
Some codes are not as obvious as above mentioned, but they are the same at the end. The mistakes they make are the same as above mentioned. The users should pay more attention to coding and reuse one formula parser instance as far as possible on the premise of guaranteeing the security of thread.
It will take time, more or less, to re-construct a new formula parser instance and it is generally 200 ms (varies based on specific machine configuration and user-defined function). Therefore, the following codes should be avoided
If it is in the background, the users can consider saving one formula parser instance by using static ThreadLocal for thread-level sharing.
如果在后台,则可以考虑使用ThreadLocal来保存一个公式解析器实例,做到线程级共享。
So if there are multiple threads in the program, it is suggested that every thread independently should create its own formula parser instance.
所以如果程序中起多线程的话,建议每个线程单独创建自己的公式解析器示例。
If it is in the foreground, the users can reuse one formula parser instance via member variable as far as possible. If there is no asynchronous calling, the users can even consider saving one formula parser instance by using static variable.
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.