The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.python
From: bearophileH...@lycos.com
Date: Fri, 18 Jan 2008 16:59:34 -0800 (PST)
Local: Fri, Jan 18 2008 7:59 pm
Subject: Re: Efficient processing of large nuumeric data file
...and just for fun this D code is about 3.2 times faster than the
Psyco version for the same dataset (30% lines with a space): import std.stdio, std.conv, std.string, std.stream; int[int] get_hist(string file_name) { foreach(string line; new BufferedFile(file_name)) { return hist; } void main(string[] args) { writefln( get_hist(args[1]).length ); } Bye, bearophile You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||