News for hackers. Stuff that matters.
Re:Ask HN: Python vs Scala for a fast web-project by gaius on Thursday June 07, 2012 @04:45AM (#4078095)
First profile the Python app - is it being slow in Python or is it waiting on something else? If it is being slow in Python, can you rewrite the critical section in C? And speaking of which, is there a C API to your DB that you can use from Python? The Python mentality has always been that it is easy to interface Python and C where necessary for performance.
Re:Ask HN: Python vs Scala for a fast web-project by pestaa on Thursday June 07, 2012 @08:22AM (#4078609)
Or better yet, have a look at Cython or PyPy. Both give a performance advantage over the standard intepreter.
Re:Ask HN: Python vs Scala for a fast web-project by ajakhu on Friday June 08, 2012 @03:12AM (#4083126)
The API problem will still exist even if we switch to PyPy or Cython.
Re:Ask HN: Python vs Scala for a fast web-project by ajakhu on Friday June 08, 2012 @02:56AM (#4083088)
No, there isn't a C API for the DB. So, that put C out of the picture for us.
Re:Ask HN: Python vs Scala for a fast web-project by gaius on Friday June 08, 2012 @05:09AM (#4083389)
Out of curiosity, may I ask which DB this is?
Re:Ask HN: Python vs Scala for a fast web-project by ajakhu on Saturday June 09, 2012 @02:01AM (#4087376)
Neo4j.