Jean Crystof napisał: > I find this discussion interesting. There's one idea for an application I'd > like to try at some point. Basically a facebook chat thingie, but with richer > gaming features. The expected audience will be 10 - 100K simultaneous clients > connecting to a single server. Not sure if DOM or SAX will be better. After > seeing the Tango's XML benchmarks I was convinced that the implementation > platform will be D1/Tango, but now it looks like Phobos is also getting > there, propably even outperforming Tango by a clear margin.
Thanks for having faith ;-) > Since even looking at Tango's documentation has intellectual property > problems and likely causes taint, I could make an independent benchmark > comparing the two and their interfaces later. But I propaply need to avoid > going into too much details, otherwise the Phobos developers wouldn't be able > to read it without changing their license. That would be helpful. > From what I've read so far, the proposed design looks very much like what > Tango has now in their I/O framework. But probably Phobos's TLS default and > immutable strings improve multithreaded performance even more. Well, immutability doesn't help much because a buffer must be written to. Speaking of multithreading, I was thinking of an implementation where an internal thread is doing I/O. It loads data in front of the current front() slice, as much as the internal buffer can hold. The motivation is to overlap content processing and I/O operations so that less time is spent in total. Although there is some interaction overhead: locking, syncing caches so that cores see the same buffer. -- Tomek
