Raynes / refheap

The Reference Heap. A Clojure pastebin powered by Compojure, MongoDB, and Pygments.
129 stars 30 forks source link

pygments via Jython #2

Closed Raynes closed 12 years ago

Raynes commented 12 years ago

Eventually, it would be quite a bit more optimal to use pygments via Jython rather than shelling out to pygmentize. Low priority.

Raynes commented 12 years ago

So it appears that using Jython for this is just insanely slow. It takes around 20 seconds to highlight a 655 line Java file on my machine. I'm not sure there are many ways to speed it up and keep it self contained. Mostly, I think Jython is just slow as hell.

We're probably better off sticking with shelling out to Python.

michalmarczyk commented 12 years ago

Whoa, that is bad. I'll let you know if I manage make it faster somehow, but for now, sure, definitely better to keep shelling out.

On 25 June 2012 00:10, Anthony Grimes reply@reply.github.com wrote:

So it appears that using Jython for this is just insanely slow. It takes around 20 seconds to highlight a 655 line Java file on my machine. I'm not sure there are many ways to speed it up and keep it self contained. Mostly, I think Jython is just slow as hell.

We're probably better off sticking with shelling out to Python.


Reply to this email directly or view it on GitHub: https://github.com/Raynes/refheap/issues/2#issuecomment-6536847