admin管理员组文章数量:1124409
I have a library with an exported function. The function is performance intensive (0.1ms per execution). I have been calling this function from the imported library, continuously on many charts for many years.
Recently. I took the function from the library, and pasted it into a new indicator. When running it from there, I was surprised to see that it takes 0.5ms per execution to run.
Both the library and local function are running with the exact same settings, charts, number of executions, etc. etc. (I've tried with different settings, and on different charts, etc. same result).
What could possibly cause this? The only thing that I can think of is that because my function is fairly heavy, and called very often, that over the years I've been running it, trading view have optimised it (or allocated extra resources to it) on their infrastructure.... resulting in the DRAMATIC (5x) performance difference to when I run the identical code locally.
Is that a thing? Thoughts? Gurus?
I have a library with an exported function. The function is performance intensive (0.1ms per execution). I have been calling this function from the imported library, continuously on many charts for many years.
Recently. I took the function from the library, and pasted it into a new indicator. When running it from there, I was surprised to see that it takes 0.5ms per execution to run.
Both the library and local function are running with the exact same settings, charts, number of executions, etc. etc. (I've tried with different settings, and on different charts, etc. same result).
What could possibly cause this? The only thing that I can think of is that because my function is fairly heavy, and called very often, that over the years I've been running it, trading view have optimised it (or allocated extra resources to it) on their infrastructure.... resulting in the DRAMATIC (5x) performance difference to when I run the identical code locally.
Is that a thing? Thoughts? Gurus?
Share Improve this question asked yesterday mrsnuffymrsnuffy 11 bronze badge1 Answer
Reset to default 0Can you help us to understand the resource fingerprint of your pine code? As the same number of cycles are used locally and remotely, the natural place to look is how large is the resource pool when executing remotely vs locally on a resource where your code has a high dependency.
本文标签:
版权声明:本文标题:pine script and code performance --- do tradingview optimise performance (or allocate more resources) for very regularly run cod 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736601717a1945230.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论