English 中文(简体)
哪一种较快的XML或INI?
原标题:Which is faster XML or INI?

我不禁要问,XML是否越快越高,也越高。

I m developing a site that includes many files this question is connected to my problem about including many files and I decided to take another step on this I want to test ini and xml if the load or process will decrease I mean the site will be faster loader. As far as I know INI is very good on PHP including but I can t do a comparison on XML vs. INI.

是否有一位专家或一位专家可以向我解释一下这两点,一点是用XML新写的?

最佳回答

你们需要用相关数据具体应用这一指标。 很难说。

But as long as you don t even run into a problem, I would use the one you re familiar with. In case this starts to get slow (which you don t even know if it will ever happen), you can still learn about XML anyway.

因此,你不会想到你没有的问题。 我相信你会做更多的工作。

问题回答

由于尼共(INI)的档案比较简单,我想说,如果说它们的话,需要多少时间。 尽管如此,XML很容易代表更复杂的数据结构。

This being true, I imagine anything where the difference in parsing speed is critical would have other problems - they are both probably going to parsed fast enough for all but the most crazy of edge cases.

如果有小的XML文件,即XML教区可以长于实际上等于源档案。 因此,答案可能取决于您的申请是否出于其他目的使用过XML。





相关问题
Parse players currently in lobby

I m attempting to write a bash script to parse out the following log file and give me a list of CURRENT players in the room (so ignoring players that left, but including players that may have rejoined)...

How to get instance from string in C#?

Is it possible to get the property of a class from string and then set a value? Example: string s = "label1.text"; string value = "new value"; label1.text = value; <--and some code that makes ...

XML DOM parsing br tag

I need to parse a xml string to obtain the xml DOM, the problem I m facing is with the self closing html tag like <br /> giving me the error of Tag mismatch expected </br>. I m aware this ...

Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

Locating specific string and capturing data following it

I built a site a long time ago and now I want to place the data into a database without copying and pasting the 400+ pages that it has grown to so that I can make the site database driven. My site ...

热门标签