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?
[ Parent
| on HN ]
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.
Because Python might be the best tool for a job that has memory constraints?
What's your underlying point here? That people shouldn't be doing things in python that take up a lot of memory?
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.