memory-efficient
Pthreads - High memory usage
I am programming something in C that creates a lot of Pthreads in Linux on a 256Mb system. I usually have +200Mb free.[详细]
2023-03-31 19:26 分类:问答Is this an efficient MySQL database design?
I am working on a project wherein I have a set of keyw开发者_高级运维ords [abc, xyz, klm]`. I also have a bunch of text files with content [1.txt, 2.txt, 3.txt].[详细]
2023-03-25 05:49 分类:问答Python: Memory cost of importing a module
The memory cost obviously depends on exactly how large a module is, but I\'m only looking for a general answer: Is it generally expensive or cheap to import a module in Python? If I have 开发者_运维百[详细]
2023-03-22 11:30 分类:问答Efficient algorithm for collisions in 2D game?
I\'m开发者_JAVA技巧 programming a Bomberman in Java following a tutorial (this is my first game).[详细]
2023-03-22 10:45 分类:问答Is there a way to paste together the elements of a vector in R without using a loop?
Say there\'s a vector x: x <- c(\"a\", \" \", \"b\") and I want to quickly turn this into a single string \"a b\". Is there a way to do this without a loop? I know with a loop I could do this:[详细]
2023-03-20 15:10 分类:问答Efficient reduction of a list in python
So I have a list of 85 items. I would like to continually reduce this list in half (essentially a binary search on the items) -- my question is then, what is the most开发者_运维知识库 efficient way to[详细]
2023-03-11 06:12 分类:问答Higher dimensional array vs 1-D array efficiency in C++
I\'m curious about the efficiency of using a higher dimensional array vs a one dimensional array.Do you lose anything when defining, and iterating through an array like this:[详细]
2023-02-23 13:16 分类:问答creating an iterator in Python from a dictionary in memory-efficient way
I\'m iterating through a very large tab-delimited file (containing millions of lines) and pairing different lines of it based on the value of some field in that file, e.g.[详细]
2023-02-19 22:00 分类:问答Python - dividing a list-of-lists to groups
Consider the following simplified case: lo开发者_如何转开发l = [[\'John\',\'Polak\',5,3,7,9], [\'John\',\'Polak\',7,9,2,3],[详细]
2023-02-10 07:27 分类:问答Memory-efficient string-to-string map in Python (or C)
I need a memory-efficient data structure for for storing about a million key--value pairs, where keys are strings of about 80 bytes, and values are strings of about 200 bytes, the total key and value[详细]
2023-01-21 06:55 分类:问答