Skip to main content

Questions tagged [memory]

Memory refers to the physical devices used to store programs or data on a temporary or permanent basis for use in a computer or other digital electronic device.

2 votes
3 answers
298 views

I'm looking for a sanity check my thinking around the memory layout of a key-value store. We have a system that periodically polls and monitors on host-level jobs. On every poll, a given job emit can ...
nz_21's user avatar
  • 147
0 votes
4 answers
494 views

I have a c++ code that needs to store some data whenever an event is triggered. The data contains about 3000 floating point values. So each of these values needs to be written in a file when the event ...
user146290's user avatar
4 votes
1 answer
297 views

Edit: @Ben Cottrell's comment said this was similar to a question about spaghetti code. While both questions involve large codebases, mine addresses a specific technical pattern: manual memory ...
Arno's user avatar
  • 151
4 votes
1 answer
332 views

More or less what the title says. Suppose we have a sequential container like vector in c++ that will store data contiguously. When we say that the data is stored contiguously do we mean that it's ...
codefast's user avatar
  • 179
3 votes
5 answers
2k views

I am designing a program and I am looking to decide over a Dictionary vs a List. Since I know I have unique values per item I imagined a Dictionary/List that looks like: Dictionary<(int k1, string ...
Ranald Fong's user avatar
1 vote
1 answer
345 views

I'm thinking about implementing garbage collection efficiently by protecting the structure that tracks allocations using reader-writer lock. However, I'm worried memory semantic may invalidate the ...
DannyNiu's user avatar
  • 374
1 vote
2 answers
1k views

Say I have the following stream: List<Other> list = Stream .of( new MyObject(), new MyObject() ) .map(this::mapToOther) .collect(toList()) ; So after this is ...
user1589188's user avatar
0 votes
5 answers
296 views

We have a huge amount of queries hitting our API that request a minor or major extract of some huge files lying around on our mounted hard drives. The data needs to be extracted from the files and ...
glades's user avatar
  • 493
1 vote
2 answers
266 views

I'm in the very conceptual phase of designing an open source password manager that provides distributed Vaults that can be simultaneously accessed and managed from multiple devices with the promise of ...
Nick Williams's user avatar
0 votes
2 answers
229 views

I have a little pet compiler project that generates bytecode interpreted by a virtual machine. The language is kind of low-level, as it allows the user to manually allocate memory and dereference any ...
chrysante's user avatar
  • 127
2 votes
2 answers
410 views

I'm working on an embedded C++ project that involves logging certain types of statistical data (like successful accesses, failed attempts, and other events) to the flash memory (just incrementing ...
Dario.Casciato's user avatar
1 vote
4 answers
474 views

I'm reviewing some lecture slides and had a question on the following slide : Assumptions (8 clocks to transfer data) Up to 3 outstanding load requests. The slide is illustrating that the number of ...
Carpetfizz's user avatar
3 votes
3 answers
758 views

My problem is the following: inside a method I'm creating an object like this: MyObject* myObject = [MyObject new]; Then I want it to perform an asynchronous task like this: [myObject ...
Andrey Chernukha's user avatar
0 votes
1 answer
1k views

I have simple wrapper class around C-style array. I don't want to use std::vector since I want to have only one array even if I do copy of the struct. With std::vector the vector is also copied. ...
Martin Perry's user avatar
-1 votes
2 answers
585 views

Based on the data structure of the AVL tree, I implemented a memory manager that does the best matching according to the size. I originally thought that the speed would be fast and the length of the ...
CukiPid's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
22