| Jon Stewart on Mon, 3 Jan 2005 15:58:02 -0600 (CST) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: [nimh-dev] more format profiling |
> What we need is a way to get the first n characters of the message body
> without parsing the whole damn thing. The default scan line will print at
> most 47 characters of message body (assuming a subjectless message and an
> 80-column terminal); any processing beyond that is wasted.
>
> On looking through email/Parser.py, I found a class called HeaderParser
> which purports to be the thing to use if you want the headers parsed but
> the payload left as a string. That's precisely what we want; I'm going to
> see about using that instead of the normal parser.
Yup.
> > I don't think we should let performance concerns discourage us. Three
> > quarters of a second is too long? Wait 2 years and you won't notice it,
> > thanks to incremental optimization and Moore's law.
>
> Hey, wasn't I just telling you that about your distributed build setup? :)
Stroustrup's law ("The running time of correct C++ compilers doubles every
15 months, because I keep moving the goal lines.") trumps Moore's law.
Jon
--
Jon Stewart Advanced Los Angeles C++
stew1@xxxxxxxxxxx http://www.alacpp.org
_______________________________________________
nimh-dev mailing list
nimh-dev@xxxxxxxxxxx
http://lists.ellipsis.cx/mailman/listinfo/nimh-dev