[issue17301] An in-place version of many bytearray methods is needed

2019-08-08 Thread Philip Dye
Change by Philip Dye : -- nosy: +Philip Dye ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17301] An in-place version of many bytearray methods is needed

2017-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python interpreter itself takes 20-30 MB of memory. Using it on a machine that has no few tens of free memory doesn't make much sense. MicroPython can be an exception, but it has special modules for low-level programming. If you need to proceed so large

[issue17301] An in-place version of many bytearray methods is needed

2017-01-04 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue17301] An in-place version of many bytearray methods is needed

2017-01-04 Thread Christian Heimes
Christian Heimes added the comment: Not every machine has hundreds of MB of memory to waste. Some devices (IoT, MicroPython, Raspberry Pi, OLPC) have limited resources. -- ___ Python tracker

[issue17301] An in-place version of many bytearray methods is needed

2017-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The important reasons for this are memory use and cache thrashing, not just > CPU time. Memory use is not an issue unless you translate hundreds of megabytes at a time. Cache trashing at the end is performance issue. The original patch is no longer

[issue17301] An in-place version of many bytearray methods is needed

2017-01-03 Thread INADA Naoki
INADA Naoki added the comment: I prefer ".inplace_translate" to ".mtranslate", but I'm not sure about it's worth enough to add it to bytearray. In last year, I proposed adding `bytes.frombuffer()` constructor to avoid unnecessary memory copy.

[issue17301] An in-place version of many bytearray methods is needed

2017-01-03 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17301] An in-place version of many bytearray methods is needed

2015-03-24 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17301 ___ ___ Python-bugs-list

[issue17301] An in-place version of many bytearray methods is needed

2013-04-13 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: An mtranslate, or mutating translate method for bytearrays. My first C code in a long time, so be gentle. The name is bad, but I don't see a better suggestion below. -- keywords: +patch nosy: +n Added file:

[issue17301] An in-place version of many bytearray methods is needed

2013-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, Terry, I was meaning a CPU time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17301 ___ ___

[issue17301] An in-place version of many bytearray methods is needed

2013-03-05 Thread Christian Heimes
Christian Heimes added the comment: +1 -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17301 ___ ___ Python-bugs-list

[issue17301] An in-place version of many bytearray methods is needed

2013-03-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: The important reasons for this are memory use and cache thrashing, not just CPU time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17301 ___

[issue17301] An in-place version of many bytearray methods is needed

2013-03-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How *just and *strip can modify an argument in-place? All other methods except title (lower, swapcase, upper) are partial cases of translate. I.e. you need only in-place translate. However I doubt that difference will be more than several percents. Actually

[issue17301] An in-place version of many bytearray methods is needed

2013-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Gregory, if an in-place version of .translate is all you want, only ask for that. Change the title and let us focus on the best case. Forget what others *might* want. Serhiy, what is 'tacts per byte'? -- ___

[issue17301] An in-place version of many bytearray methods is needed

2013-03-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17301 ___ ___

[issue17301] An in-place version of many bytearray methods is needed

2013-03-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think you need to make more of a case for 'should'. Bytearrays are, well, byte arrays, not text arrays. I could just as well claim that the ascii text operations should not even be there. They are certainly not needed for typical mixed binary-ascii protocol

[issue17301] An in-place version of many bytearray methods is needed

2013-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Translate isn't a text operation. (That's the api I wanted). The others I only lists for completeness because someone else would complain if I hadn't. ;) On Mar 1, 2013 12:57 PM, Terry J. Reedy rep...@bugs.python.org wrote: Terry J. Reedy added the

[issue17301] An in-place version of many bytearray methods is needed

2013-02-26 Thread Gregory P. Smith
New submission from Gregory P. Smith: bytearray has many methods that return a *new* bytearray object rather than applying the transformation to modify the bytearray in place. Given that one use of bytearray's is to avoid making extra copies... There should be in-place variants of the