Templates are static constructs, but when they are used, they are essentially interpreted each time they are accessed.

A few years ago we introduced the idea that templates could be hard-coded in C (the built-in templates were done this way, and string modules were introduced to allow for further cusomizations). This was enough of an improvement to result in a 10%+ improvement in total throughput.

I'm wondering if it would make sense to try and 'compile' a template down to C (or something extremely efficient to process) at startup time rather than going to hand-coded string modules.

thoughts?

David Lang
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to