[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] The #include does not get re-read for each execution ?



PureBytes Links

Trading Reference Links




Salil,
 
For better performance AmiBroker caches #included files UNTIL 
you change formula that references them.
So to force #including you have to change the formula in AA 
(just add a space or comment // mark)
 
This is so because disk operations are much slower than 
in-memory operations, so caching #included
files brings improved performance.
 
The idea is that you work in AA window and #included files 
contain TESTED code that does not require
changes every AA run.
 
The workflow is as follows: you work on your formula (or 
user-defined functions). Once you consider
some part of it as "complete and tested" you can move it to 
#included file.
 
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Salil V 
  Gangal 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Saturday, May 10, 2003 5:13 
AM
  Subject: [amibroker] The #include does 
  not get re-read for each execution ?
  
  Tomasz,
   
  It looks as if the #include file is not getting re-read from the for 
  every execution (invocation) of the program that contains the #include 
  statement.  It looks like a bug.
   
  Create a .AFL file with text (say)
   
  "Hello World!";
   
  And include this above file using #include in (say) the 'Guru 
  Formula' and get the commentary.  It will contain the string Hello 
  World!
   
  Now change the disk file without exiting AmiBroker  
  to contain the string following string and save it to 
  disk.
   
  "Hello World! Hello World!";
   
  Flip to 'Guru' Formula and click 'Apply'  ... the string that's show 
  in the commentary still is a single Hello World! rather than double Hello 
  World!
   
  Regards,
   
  - Salil V 
  Gangal
  
  
  Do you Yahoo!?<A 
  href="">The New 
  Yahoo! Search - Faster. Easier. Bingo. Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.