/    Sign up×
Community /Pin to ProfileBookmark

I have a website that uses PHP to parse XML files.

Several pages require two XML files: teams.xml (which is 14 KB in size) and players.xml (189 K?. Two pages require a third: “draft_top_2009.xml” (there WILL be a “draft_top_2010.xml”).

Would it allow for faster processing if I combined teams.xml and players.xml?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogNov 15.2009 — Off-hand I don't know, and it might depend on a number of interrelated factors. Probably the only way to tell for sure in your particular situation is to try both ways with some metering in place to determine the difference, if any. (My instinct is that loading separate files requires some additional overhead, but then that might be offset by having to manipulate larger data sets for each operation, thus I don't know. ? )
Copy linkTweet thisAlerts:
@Mr_Initial_ManauthorNov 15.2009 — Hmmm... I'll try that. I did forget to mention that these files have to be validated. (and I have an external DTD)
Copy linkTweet thisAlerts:
@Mr_Initial_ManauthorNov 16.2009 — Well, I did try, and it seems that the BIG XML file takes longer.
×

Success!

Help @Mr_Initial_Man spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...