开发者

Is 15 MB RAM acceptable?

I am writing an application in Python that functions as a 开发者_StackOverflowdaemon, and performs a relatively trivial task in the background. By trivial I mean it waits for keystrokes and plays certain sounds when detected.

I am getting around 15 MB of RAM usage for the python process. Would you consider this acceptable for a small application? It has very low CPU usage.

Thanks in advance.


15Mb for such a small app is too much. If you can bring it down by changing the source code, you should.

However, it's possible that Python by itself has some fixed overhead. Whether you are OK with paying that cost just to get the Python language for something so simple, is up to you. But in my opinion it might not be worth it and I'd consider different platform for this scenario.

Note that this is not to say that there's anything inherently wrong with Python; there are scenarios where such an overhead might be acceptable cost compared to the benefits and simplicity of language and the ease of implementing complex scenarios with it.

All I am saying is - use the right tool for the task; Python might not be the right one for this task.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜