Forum Discussion
Altera_Forum
Honored Contributor
15 years agoOf course haserl generated web pages can be rather slow. In a no-MMU environment with the command line interpreter and many standard command line tools in busybox, the busybox executable is loaded many times from Flash into RAM. This reduces the speed a lot, especially if (like with NIOS noMMU) busybox is statically linked and thus huge. I did not test this, but I suppose in an MMU environment with dynamic linking and/or "execute in place (XIP)" provided, haserl scrips will do fairly fast.
I myself would not create html code directly in C, as this is very unflexible. So if doing C, I would read a html file with tags, and use C code to replace the tags with the C code in realltime. But in fact this is exactly what haserl does. A more advanced way and more "standard" to do dynamic html pages is using LUA instead of the normal command line interpreter. I don't know much about LUA, but I do know that LUA is supported by haserl as well). Of course the most "standard" way of doing all this is running PHP scripts. I myself did not consider this, as I would need to add the PHP syntax to my old and already quite full brain. -Michael