Aug-16-2019, 01:15 PM
Seems low on an 8 GB Ram machine. Unless there is some parameter limiting the amount of memory used. (I did check there was no paging activity, it occurred to me that possibly byte strings have some internal representation that takes up inordinate amount of space). There was not much else running on the machine and gobs of RAM available.
I’m guessing that char string catenation is done with pointers, and hence the very roughly constant time per increment. And byte strings look like they aren’t, it’s maintaining a single contiguous entity, which seems odd to me. But that’s just an ignorant guess.
Whatever the reason it’s pretty bad. Eight and a half minutes to build a mere 3 MB bmp file is ludicrous. So I’m looking for ways to speed this up.
I’m guessing that char string catenation is done with pointers, and hence the very roughly constant time per increment. And byte strings look like they aren’t, it’s maintaining a single contiguous entity, which seems odd to me. But that’s just an ignorant guess.
Whatever the reason it’s pretty bad. Eight and a half minutes to build a mere 3 MB bmp file is ludicrous. So I’m looking for ways to speed this up.