[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
[patch ipp] Time Optimization
- From: Denis Barbier <nospam@thanx>
- Date: Thu, 31 Dec 1998 14:11:27 +0100 (CET)
Hi Ralf and others,
to speed up wml, i decided to store files inside a ``format'' file, as
TeX does. I create a file
## file includes.wml
use wml::std::all
use wml::des::all
##EOF##
process it through wml_p1_ipp:
prompt> wml_p1_ipp -S /usr/lib/wml/include includes.wml > includes.pass1
and include this file via
#include "includes.pass1"
This file may be read verbatim, wml_p1_ipp should do nothing on it. So i
added these few lines to ipp.src and now
#include "includes.pass1" verbatim
read ``includes.pass1'' without invoking ipp on it.
I admit that speed-up time is not terrific.
Denis
--- wml-1.6.7/wml_backend/p1_ipp/ipp.src Thu Jul 30 10:22:16 1998
+++ wml-1.6.7/wml_backend/p1_ipp/ipp.src Thu Dec 31 12:42:50 1998
@@ -245,6 +245,11 @@
while ($l = <$in>) {
$line++;
+ if ($arg{'verbatim'}) {
+ $out .= $l;
+ next;
+ }
+
#
# Variable Interpolation
#
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com