title: Construct object at compile time and store in executable?
body: <p>Say I have an object that takes about 30 seconds to construct on each program run. This object is constructed with the same piece of data each and every time the program is run. What solution(s) exist for this problem?</p>
  
  <p>EDIT:</p>
  
  <p>I did some research tailored to a more specific version of my question. In particular, I wanted to populate a hash table with some values. I found <a href="http://www.gnu.org/software/gperf/" rel="nofollow">http://www.gnu.org/software/gperf/</a> which addresses this exact issue. gperf generates a perfect hash function and the associated table to go along.</p>