Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Python] In-memory save png
#4
(7 hours ago)DunkleMaterie Wrote: And thank you for the pointer, I will try to find information about this GEGL topic. I've also a maybe-working way by implementing the Gio.File interface in plain python to utilize only memory storage and offer a method to return the bytes when appending it to request. But this could be some pain and may not fully working or instable, I think. What do you think about this approach?
Frankly? Waste of time. What problem are you trying to solve? How will a memory file be significantly better that a file mapped to a tmpfs (on Linux you can count on /run/user/{id}) or even a plain filesystem given the existence of file buffers all over the place?
Otherwise, Gio has MemoryInputStream and MemoryOutputStream.
Reply


Messages In This Thread
[Python] In-memory save png - by DunkleMaterie - Yesterday, 08:34 PM
RE: [Python] In-memory save png - by Ofnuts - 6 hours ago

Forum Jump: