51
6
submitted 3 years ago by lntl@lemmy.ml to c/python@lemmy.ml

I have a large object that I want to save to the disk because it takes a minute to generate. The OOM reaper kills the process while pickle.dump ing the object.

It's a tuple of dicts of tuple of array.array.

Can pickle dump in chunks? If not, is there another technique I can use?

52
6
submitted 3 years ago by jnovinger@lemmy.ml to c/python@lemmy.ml
53
3
submitted 3 years ago by jnovinger@lemmy.ml to c/python@lemmy.ml
54
1
submitted 3 years ago by jnovinger@lemmy.ml to c/python@lemmy.ml

Some neat tricks for using Makefiles with Python that I hadn't seen before. The one I have seen, having a help target, has been super useful in team environments and for debugging when used with variables.

55
1
submitted 3 years ago by pingveno@lemmy.ml to c/python@lemmy.ml
56
2
submitted 3 years ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
57
1
SciPy 2023 Program Review Committee (www.scipy2023.scipy.org)
submitted 3 years ago by kir0ul@lemmy.ml to c/python@lemmy.ml
58
1
submitted 3 years ago by cypherpunks@lemmy.ml to c/python@lemmy.ml

(there is a discussion about this post here https://news.ycombinator.com/item?id=34787092 ...)

59
1
submitted 3 years ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
60
1
submitted 3 years ago by pingveno@lemmy.ml to c/python@lemmy.ml
61
1
submitted 3 years ago by ailiphilia@feddit.it to c/python@lemmy.ml
62
1
submitted 3 years ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
63
1
submitted 3 years ago* (last edited 3 years ago) by cypherpunks@lemmy.ml to c/python@lemmy.ml
64
2
Textualize.io (textual.textualize.io)
submitted 3 years ago* (last edited 1 month ago) by sgtnasty@lemmy.ml to c/python@lemmy.ml

Build amazing TUIs (Text User Interfaces) with this innovative Python framework

65
2
submitted 3 years ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
66
1
submitted 4 years ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
67
1
submitted 4 years ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
68
1
submitted 4 years ago by sexy_peach@feddit.de to c/python@lemmy.ml

cross-posted from: https://feddit.de/post/248196

I have lots of multiprocessing processes which have to add to and search in a dict. Deletion of values is not needed.

Atm I am using multiprocessing.Manager() and

dict = manager.dict()

This works pretty well, but I think that the manager is a huge bottleneck here. Any ideas? It has to run on older Python 3 versions, otherwise I would use this cool thing I found: https://github.com/ronny-rentner/UltraDict

69
1
submitted 4 years ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
70
1
submitted 4 years ago* (last edited 4 years ago) by cypherpunks@lemmy.ml to c/python@lemmy.ml
71
1
submitted 4 years ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
72
3
submitted 4 years ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
73
1
submitted 4 years ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
74
3
submitted 4 years ago by cypherpunks@lemmy.ml to c/python@lemmy.ml
75
1
submitted 4 years ago by pingveno@lemmy.ml to c/python@lemmy.ml
view more: ‹ prev next ›

Python

3639 readers
1 users here now

News and discussions about the programming language Python


founded 7 years ago
MODERATORS