[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] New RPM libezxml
- To: mint <mint@lists.fishpool.fi>
- Subject: Re: [MiNT] New RPM libezxml
- From: Paul Wratt <paul.wratt@gmail.com>
- Date: Wed, 16 Jun 2010 17:31:36 +1000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=MbhhGWCUR9VEpsrunNIfbWpt2jaq8KVPaOxRHYJx0m8=; b=JGt63xeV83CIXnLaJVMwNddKYsXpmbERDbxelIAF5gXPANEczKbPsviWEUddzJKn2k fnRukaJSLiWAE2AOBiaKWe7Yw4+KWUgdBivsVpX+b5W4f2Pv3q1tdgafDarQm0rAq+3N 2M1pYDvb/R7qAVxotMv3tVIdwn4LtZZ6vnpXs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=t2k/dG4vylvNkrPLyw/m9bv9hyqme5MCHse/QWX2Ffjbifm4wzT/ObLUbW1NH0bdc8 ZA57RnetEY+bRfIaYn4+jcba6rMD442NuHaQhoXSTQzya19+fR0aqOtFOswdB3OQFFbV uaZz/z1c7bJFtBjhdvcHuL1zDZzI/8HnqJhJU=
- In-reply-to: <15663c5ab7345f69b1be43a4a49e67a6-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUBFBDBTXF5bVkYJX11oAl06XF1YR0MBV1pYRw==-webmailer2@server08.webmailer.hosteurope.de>
- List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
- List-id: <mint.lists.fishpool.fi>
- List-owner: <mailto:tjhukkan@fishpool.fi>
- List-post: <mailto:mint@lists.fishpool.fi>
- List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
- List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
- References: <09a2f4b3b7d3a704493cc2e4e12ab099-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUBFBDBTXF5bVkYJX15oA1dTMl5dRkMHWl5eRFg=-webmailer2@server02.w> <00045dac.01b8d2629bb6@smtp.freeola.net> <6DA627E449004FBC9AA53C708C04786C@mercatus.local> <201006152135.59967.oak@helsinkinet.fi> <15663c5ab7345f69b1be43a4a49e67a6-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUBFBDBTXF5bVkYJX11oAl06XF1YR0MBV1pYRw==-webmailer2@server08.webmailer.hosteurope.de>
- Sender: mint-bounce@lists.fishpool.fi
On Wed, Jun 16, 2010 at 7:40 AM, m0n0 <ole@monochrom.net> wrote:
>
> Am Dienstag, den 15.06.2010, 20:35 +0200 schrieb Eero Tamminen
>
>>
>> IMHO INI style configuration files are nicer. Less code needed for
>> parsing,
>> it's easier & faster to read, file size is smaller and like XML, it's
> kind
>> of a standard.
>
> Of course, that's true... but sometimes you will need XML parsing /
> writing (btw. I tested writing with ezxml and it works fine, ( I also
> tested for memory leaks) )
>
>>I think XML strengths are elsewhere (complicated /
>> arbitrarary data structures), but JSON[1] is partially replacing XML in
>> those areas as it's more lightweight...
>
> Is it really more lightweigt? How would you access JSON from C? I think
> this doesn't really make much difference. At least, when accessed from C.
> In JavaScript, JSON is nice to use. I think it's really better to use JSON
> for Object serialization / de-serialization than XML. It's a no brainer to
> create JAvaScript Objects from JSON. I believe creating JavaScript objects
> from XML involves a lot more code...
>
> Greets,
> Ole
>
It depends entirely on what the contents on any INI/XML config need to
be, and how or weather they need to be manipulated
each has its own strengths and weaknesses, its not just about personal
preference, but application and end user usability too
BTW some of the default KDE skins use XML format config files, as do
some of the widget and interface config (just a general FYI)
XML management does tend to be a bit bloated, so this library is a
nice change (20k all up)
I have to points:
1) this library would suit the creation of RSC binary replacements in
CVS as discussed around Christmas
2) for large files this library uses mmap:
""
Loads the entire XML document into memory at once and does not allow
for documents to be passed in a chunk at a time. Large XML files can
still be handled though through ezxml_parse_file() and
ezxml_parse_fd(), which use mmap to map the file to a virtual address
space and rely on the virtual memory system to page in data as needed.
""
So I have 2 questions:
a) We dont use "nmap/mmap" yet do we (due to MiNT lacking a virtual
memory manager)?
b) Ole, have you tested large xml files yet, or used the above
mentioned functions?
Thanks for the package port Ole
Cheers
Paul