Anyway, the new code is live now .... it seems faster for me (noticeable on 'static' pages the most... like / and /site/about.bml and stuff). But maybe it just seems faster because I know it's faster. I dunno.
Stuff that's changed:
- Config is file is only read and parsed once between requests.
- Template files are only read and parsed once between requests
- Optional bmlp.cfg directive lets you control whether config file and template files are stat'ed and re-read if they have been modified since the last request, but I have that off for now. Instead, you can HUP the process to make it re-read its files.
- BML parser was rewritten (as I said yesterday). It's a lot faster. Less code, too, and it's easy to read now.
Update: yeah, i broke it for a second. it's working now.