<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Pointers vs structure performance</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/764b911115/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/764b911115/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/764b911115/</id><updated>2020-02-27T22:57:16.897000Z</updated><subtitle>Recent posts to Pointers vs structure performance</subtitle><entry><title>Pointers vs structure performance</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/764b911115/?limit=25#ecd1" rel="alternate"/><published>2020-02-27T22:57:16.897000Z</published><updated>2020-02-27T22:57:16.897000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.comb1e2337672316762457e31e414132d00501464e6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If you just compare the performance of data-transport then both methods are same, also the VAR_IN_OUT is a pointer to the data. With using the VAR_IN_OUT the compiler can checke if there is data connected, if the connected data type is correct, and there is absolutely no risk of pointing to wrong data (caused by a onlinechange).&lt;/p&gt;
&lt;p&gt;So my favorite is : VAR_IN_OUT&lt;/p&gt;
&lt;p&gt;If you where asking the same question in the V3 Forum you got more options (References + Interfaces) Which are defenitly also good ways to transfer "large" amounts of data with a good performance.&lt;/p&gt;
&lt;p&gt;Regards&lt;br/&gt;
Ralph&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Pointers vs structure performance</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/764b911115/?limit=25#c9e7" rel="alternate"/><published>2020-02-27T22:57:15.279000Z</published><updated>2020-02-27T22:57:15.279000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com7e61a10c88aab40b857e7f3ad98512430af2ae05</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;var in out means you will have a bigger structure.&lt;br/&gt;
better one structure for out and another for Input.&lt;/p&gt;
&lt;p&gt;see  w &lt;a class="" href="http://www.oscat.de" rel="nofollow"&gt;www.oscat.de&lt;/a&gt; w  for functions to do communications.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Pointers vs structure performance</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/764b911115/?limit=25#e347" rel="alternate"/><published>2020-02-27T22:57:10.757000Z</published><updated>2020-02-27T22:57:10.757000Z</updated><author><name>fabou3377</name><uri>https://forge.codesys.com/u/fabou3377/</uri></author><id>https://forge.codesys.com33256a7bcd6a1f27b8882cf7e81865e7d3504592</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;what the better way in term of performance when we have 1 FB Master and n FB Slave and we need exchange information between them.&lt;/p&gt;
&lt;p&gt;1) Create a struture and pass it with a VAR_IN_OUT to master and slave FB&lt;/p&gt;
&lt;p&gt;2) Create a pointer parameter to master  in the FB slave&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>