Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum wrote:
Something is horribly unoptimized when compiling mappings. I did some data processing and wrote out the resulting mapping with sprintf %O into a text file, resulting in some 40,000 entries. I then created a file like this
A similar thing happens when including a large file containing arrays.
The following program takes about two minutes to execute and uses about 500 megabytes of memory with http://hancke.name/pike/l2.i (18 meg):
#include "l2.i" void main() { }
Manual extraction with lots of sscanf takes about two seconds.
The lesson I learned from that is not to include large amounts of data as code.