News for hackers. Stuff that matters.
Re:Memray: a memory profiler for Python by isaacfrond on Thursday April 21, 2022 @03:15AM (#31106777)
If you need this, why are you using Python? Seriously, can anyone explain that to me?
Re:Memray: a memory profiler for Python by Chiron1991 on Thursday April 21, 2022 @04:19AM (#31107091)
First and foremost for debugging purposes, e.g. to find memory leaks and such.

Then, it's not a bad thing to optimize memory usage in any language. Memray could be a great tool for the authors of data science libraries, which Python has plenty of. Their average user probably doesn't have a beefy developer's laptop with 64GB of memory at hand.

Re:Memray: a memory profiler for Python by fer on Thursday April 21, 2022 @05:30AM (#31107452)
Because Python might be the best tool for a job that has memory constraints?
Re:Memray: a memory profiler for Python by anonu on Thursday April 21, 2022 @08:13AM (#31108433)
What's your underlying point here? That people shouldn't be doing things in python that take up a lot of memory?
Re:Memray: a memory profiler for Python by ajoseps on Thursday April 21, 2022 @08:30AM (#31108555)
debugging high memory usage in python can be annoying. python is used a lot for data analysis e.g. pandas, numpy. You might have scenarios where some dataframe either generated or read, is a lot bigger than others for whatever reason. This might be useful in debugging as to why that's the case.
Re:Memray: a memory profiler for Python by dmalecaut on Thursday April 21, 2022 @04:43AM (#31107223)
Substantial python codebase already?