Brion Vibber wrote:
On Dec 16, 2004, at 4:41 AM, Jan-Ake Larsson wrote:
* No need to pre-render latex code.
Oh, this one's *so* not gonna happen. Sounds like DoS heaven -- every
wonk who changes his font size hits our servers up for a slow TeX
render and rasterization.
TeX render only happens once for each page (you already have this run
in your present solution, just cache the DVI). Then, change your
Really Slow dvips->gs raster route to dvipng and you'll find that the
rasterization is not that slow anymore. And then there is image
caching, which you already use. So do I. Putting a sensible limit to
the number of allowed font sizes will remove another problem. About a
dozen or so different (integer pixel) sizes will be more than enough.
Only Really Odd people (and DoS wonks, of course) will be outside
that, and the improvement is great for the large mass of users.
* No
javascript? No images. You'll see latex source.
Sorry, not gonna happen.
At the price of prerendering some fixed-size default image this can be
avoided, of course. You already do this "standard"-size rendering, and
cache the result. I'd think this is mostly a problem for static-html
sites (as is mine). Not so much a problem for a site where the pages
are generated dynamically anyway.
Don't let the shortcomings of my present code stop you from improving
it.
/JÅ
--
I hope to die before I have to use Microsoft Word.
Donald E. Knuth