Closed Raynes closed 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.
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
Eventually, it would be quite a bit more optimal to use pygments via Jython rather than shelling out to pygmentize. Low priority.