[phpa] caching of things like file() and xml_ routines
- From: LS <alphafoo@xxxxxxxxx>
- To: phpa@xxxxxxxxxxxxx
- Date: Thu, 6 Jun 2002 22:00:07 -0700 (PDT)
Hi-
One of my scripts parses a big XML file on each invocation by doing
something
like this:
$data = join('', file($file,1));
$parser = xml_parser_create();
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
xml_parse_into_struct($parser, $data, $vals, $index);
xml_parser_free($parser);
I'm wondering if PHPA caches this sort of thing so that the xml struct is only
created when the underlying $file changes, or if it doesn't know about this and
reparses everything no matter what.
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
------------------------------------------------------------------------
www.php-accelerator.co.uk Home of the free PHP Accelerator
To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe
Other related posts:
- » [phpa] caching of things like file() and xml_ routines