Arne Georg Gleditsch wrote:
The unrv2b uncompression algorithm appears to behave
very badly in
the absence of a proper cache.
But why does this improve when the algorithm runs out of RAM?
Could ROM accesses be a factor?
The following patch copies the unrv2b function to DRAM
performing the actual decompression, reducing the run-time from
12.5s to 50ms in my environment. The patch is somewhat rough, and
assumes that (1) the unrv2b function is less than 1k in size, and (2)
that placing a copy of the function just after the decompress
destination is unproblematic. It works well for me, though.
Signed-off-by: Arne Georg Gleditsch <arne.gleditsch(a)numascale.com>
Acked-by: Peter Stuge <peter(a)stuge.se>