Hacker News new | past | comments | ask | show | jobs | submit login

5x memory usage of what? You're not giving actual numbers, nor the benchmark you used.



>5x memory usage of what?

Of what he was seeing without PyPy.

He doesn't want advice on how to lower that. He wants to get the same memory usage or better out of the box.


No I wanted reasonable tradeoffs.

e.g. 20% faster execution for 100% more memory

In my case it was 15% faster execution (give or take), with a 400% memory increase.

This was on a simple view which did nothing, so it's hard to tell how it'd handle more complex views in the app.

Either way this is a huge detour from what this actual topic is about, whether you use PyPy or CPython


I have absolutely no idea how HN replies work, but this is in response to the PyPy memory usage.

I'm optimizing for my application. If you want to use PyPy, use it. I couldn't care less.

If I was having a hard time already maxing CPU due to memory constraints, how does switching to something that will use a very large amount of memory (relative to the CPU gains) make any sense at all? Do you really think "more complex code" is going to use less memory?

If you want benchmarks, go find some, or go create some. It has absolutely nothing to do with the gains I'm pointing out by simple webserver choices and minor tuning.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: