memory-efficient Questions
2
I am processing text files 60GB or larger. The files are seperated into a header section of variable length and a data section. I have three functions:
head? a predicate to distinguish header lin...
Abdias asked 17/12, 2015 at 8:25
2
Solved
for an experiment I decided to program a little game into my TI-89 using the built in program editor, however I cannot figure out an optimal method of getting keystrokes without significant delay. ...
Liebman asked 16/4, 2015 at 19:35
1
Solved
In order to improve memory efficiency, I've been working on converting some of my code from lists to generators/iterators where I can. I've found a lot of instances of cases where I am just convert...
Batik asked 1/12, 2015 at 22:4
4
Solved
Yes, I know this is nothing new and there are many questions already out there (it even has its own tag), but I'd like to create a Sudoku Solver in Java solely for the purpose of training myself to...
Barograph asked 27/7, 2010 at 9:50
6
Solved
I am programming something in C that creates a lot of Pthreads in Linux on a 256Mb system. I usually have +200Mb free.
When I run the program with a low amount of threads it works, but once I make...
Demetrius asked 29/8, 2011 at 21:1
4
Solved
I'm trying to perform checks on the first and last elements of an interator. It has several thousand entries, so I need an expeditious method of checking. If found this post, that put me onto this ...
Aeolian asked 20/11, 2013 at 19:0
3
Solved
What are are the relative advantages of the three in terms of the number of comparisons performed and the amount of memory required by the algorithms. Which of them is their running time guar...
Lilybelle asked 19/12, 2013 at 22:12
4
Solved
A friend of mine showed me the following Python code:
a[1:] == a[:-1]
Which returns True iff all the items in a are identical.
I argued the code is hard to understand from first sight, and more...
Alienage asked 8/12, 2013 at 6:44
2
Solved
This might have been asked before, but I can't find any such posts. Is there a class to work with ASCII Strings? The benefits are numerous:
Comparison should be faster since its just byte-for-byt...
Ptolemaist asked 1/6, 2013 at 7:8
3
Solved
I have this simple Java Code which creates a single JFrame instance and displays it. This link contains the screenshot of memory consumption graph taken by jconsole
What worries me is that java....
Erelia asked 3/10, 2012 at 14:52
3
Solved
What is the best way of constructing a ListView that uses the least memory possible? This is important, because I met a few implementations and most of them is lagging when I scroll the ListView on...
Intrench asked 27/7, 2012 at 8:52
5
Hi I have the following problem:
I'm storing strings and a corresponding list of integer values in an MultiValueMap<String, Integer>
I'm storing about 13 000 000 million strings and one strin...
Instal asked 16/2, 2012 at 21:27
6
Solved
how expensive is 'new'? I mean, should I aim at reusing the same object or if the object is 'out of scope' it's the same as emptying it?
example, say a method creates a list:
List<Integer>...
Serviceberry asked 16/2, 2012 at 15:37
1
Solved
What would be better in terms of memory efficiency or would have the best overall performance on Android and SQLite, getting a record count with cursor.getCount() or to execute a rawQuery with a CO...
Patten asked 21/12, 2011 at 16:4
2
I am just curious whether it is more efficient to store data in long or wide format regardless of the interpretative? I have used object.size() to determine the size in the memory but they do not d...
Deerdre asked 18/11, 2011 at 10:37
5
I am wondering if there is a sufficiently simple algorithm for generating permutations of N elements, say 1..N, which uses less than O(N) memory. It does not have to be compute n-th permutation, bu...
Ideally asked 7/11, 2011 at 23:39
1
Solved
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 a few tens ...
Fifty asked 25/7, 2011 at 6:45
4
If one computer can only hold 1 million numbers, how to find out the median number from 100 million numbers?
Chilcote asked 25/9, 2009 at 2:2
© 2022 - 2025 — McMap. All rights reserved.