I've uploaded a commit to lp:~c-tom/python-mode/doc-face-speedup. I haven't been able to see any slow-down in the given test file when fontifying the font-lock-doc-face, even when making it bigger, but Andreas suggested using some functions from python-mode which, as a side-effect, also allow empty lines between the docstring and it's definition, so I've tried that.
Since I can't reproduce it (on either my PC or netbook) I would ask you, Georg, if you could please look if this helps.
I don't know what the usual etiquette for such changes is, so please forgive me if I'm doing something wrong and let me know so I can keep it in mind in the future.
I've uploaded a commit to lp:~c-tom/python-mode/doc-face-speedup. I haven't been able to see any slow-down in the given test file when fontifying the font-lock-doc-face, even when making it bigger, but Andreas suggested using some functions from python-mode which, as a side-effect, also allow empty lines between the docstring and it's definition, so I've tried that.
Since I can't reproduce it (on either my PC or netbook) I would ask you, Georg, if you could please look if this helps.
I don't know what the usual etiquette for such changes is, so please forgive me if I'm doing something wrong and let me know so I can keep it in mind in the future.