I am having difficulty troubleshooting a memory allocation problem in a 
show method for a user defined type.

Compiling the show method with 126 @printf macros takes 197 seconds and 
allocates 5.57GB of memory.  The next call takes 0.014 seconds and 
allocates 27.141KB.  I moved the type and it's show method to a notebook 
here:

https://github.com/cstook/julia-printf-memory-allocation

Memory allocation for compilation seems to be exponentially related to the 
number of @printf macros, but I do not see any particular offending line. 
 This was determined by commenting out blocks of code. 

What is the best way to troubleshoot a compile time problem?

Chris

Reply via email to