XML Benchmarks in D
BCS
BCS at pathlink.com
Thu Mar 13 12:01:53 PDT 2008
Sean Kelly wrote:
> == Quote from N/A (NA at NA.na)'s article
>
>>I generally handle files that are a few hundred MB to a few gigs and I noticed that the
>>input is a char[], do you also plan on adding file streams as input?
>
>
> I believe the suggested approach in this case is to access the input as a memory mapped file. This does
> place some restrictions on file size in 32-bit applications, but then those are ideally in decline.
>
>
> Sean
what might be interesting is to make a version that works with slices of
the file rather than ram. (make the current version into a template
specialized on char[] and the new one on some new type?) That way only
the parsed meta data needs to stay in ram. It would take a lot of games
mapping stuff in and out of ram but it would be interesting to see if it
could be done.
More information about the Digitalmars-d
mailing list