Hi, The attached patch changes the latex fragment image generation so that it saves images into files named by the sha1 hash of the latex source code. By checking for the existence of image files before image generation the regeneration of identical images is avoided. In practice I find that this greatly speeds up export to html and the `org-preview-latex-fragment' command. Cheers -- Eric