38,299 questions
0
votes
1
answer
43
views
Spring Boot with Redis Cache not deserializing correctly
I'm trying to create a test project based on Springboot with a Redis Cache.
I'm facing a problem as deserialization from Redis is not working properly
So, to be more precise, I'm running a demo app ...
Best practices
0
votes
7
replies
103
views
How can I encourage malloc() to return a series of consecutive allocations?
I've observed that when I write a little test program that builds a linked list and prints the addresses, they tend to be consecutive. This is a very cache-efficient behavior, since the nodes pack ...
-3
votes
3
answers
120
views
How to cache POST requests in Python
I am learning how to cache web requests. I am using the library requests-cache, current version 1.3.2. I managed to cache a GET request using this code:
from requests_cache import CachedSession
...
0
votes
2
answers
77
views
Next.js 16 PPR: /api/og route logs "needs to bail out of prerendering" on every build
I enabled Partial Prerendering (PPR) in my Next.js 16 project by commenting out export const dynamic = "force-dynamic" across all pages and adding cacheComponents: true to my next.config.ts. ...
2
votes
1
answer
134
views
Some questions about ARM/ARM64 write combine(NORMAL_NC) memory attribute read/write and memory barriers
I want to test the correctness of DDR, that is, write a value to a certain address in DDR, ensure that it is written to DDR, then read the value from DDR and check if it is equal to the written value.
...
-2
votes
0
answers
128
views
How to do an interface between the PC counter and synchronous instruction cache in a 5-stage pipeline
I'm working on a 5-stage pipelined processor in VHDL that I'm going to implement on an FPGA. The design works fine without a cache, but I've run into some issues adding a cache to my design.
I think ...
Advice
0
votes
4
replies
124
views
Could the L1 Cache Save Computation Time?
The CPU cache unit is used to store the next few instructions so that the (expensive) process of reading and writing the RAM is bypassed to save execution time. Has anyone thought about using the L1 ...
Best practices
0
votes
4
replies
93
views
What is best practice to use second caching layer with Redis to use it in service layer with ApiControllers?
I've started pet-project recently and created generic RedisService to use for caching, but I found problem that redis isn't good way to storing anomyous user data, if he revisists the webapp for like ...
Best practices
0
votes
1
replies
67
views
Which cache level best proxies DRAM traffic on Raspberry Pi 5 (Cortex-A76) for single-threaded perf measurements?
I'm running a single-threaded convolution benchmark on a Raspberry Pi 5 (Cortex-A76, 4 cores) and using perf stat LLC miss counts as a proxy for DRAM memory traffic. I want to understand which cache ...
1
vote
2
answers
116
views
One aync lock call or multiple async lock calls, what is better and safer in Python?
I trying to make ratelimiter for users in aiogram bot with middlware, now I created class for requests and class for ratelimiter, where reuqest are. My problem is what is better for performance and ...
0
votes
0
answers
65
views
Redis Stream async processing causes "message not found" when editing immediately after sending
I am building a chat system using Redis Streams for async processing.
Flow:
API sends message → pushed to Redis Stream
Consumer reads from stream → persists message to DB
Problem:
When I send a ...
2
votes
1
answer
99
views
Trying to understand instruction cache (for repeated Jit compilation reusing memory pages) [duplicate]
I am playing with jit compilation on a Raspberry Pi 5 (aarch64) using linux.
My goal is to generate native code, execute it, then continue generating more native code and execute that (which might or ...
Best practices
0
votes
2
replies
78
views
Infinispan as Hibernate 2LC and Spring Cache
I have a question about Infinispan when its being used with Hibernate as a second level cache, while also being used as a regular cache with Spring.
Specifically, I have an Spring 7 application and I ...
Advice
0
votes
2
replies
134
views
What is the name of this caching pattern
I implemented this pattern in two ocasions, not sure if there is fancy name:
instead caching the result of a query for a given id, I run a periodic scan and fill the cache, to serve all ids from ...
0
votes
0
answers
98
views
Spark SQL MERGE/INSERT on Iceberg Recomputes Upstream Join Instead of Reusing Cached DataFrame (MEMORY_AND_DISK)
Spark SQL + Iceberg: MERGE and INSERT appear to ignore cached DataFrame and re-scan source
I am trying to optimize an SCD2 flow in Spark SQL (Python API) using a cached intermediate DataFrame.
...