Compiler Questions! - What does it do? Why does it take a while? Are there ways to speed it up?
#10

Quote:
Originally Posted by Y_Less
Посмотреть сообщение
I did discover that very large global arrays can actually slow the compiler down a lot. Most of this speed loss will come from writing the blank arrays to the output file (file ops are generally quite slow) - I recently wrote a script which needed an array of 128Mb and the compiler ground to taking at least a minute to compile compared to seconds for the same script with a much smaller array.
Perhaps you could put a large #pragma dynamic directive then steal half the heap and point the array to it!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)