RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

Increase import performance on switch using new hardware crypto

Open fennectech opened this issue 6 years ago • 6 comments

We have hardware SHA1 and CRC32 in libnx now this could be used to speed up the content importer
https://github.com/switchbrew/libnx/pull/259

Relevant pull request

fennectech avatar Apr 05 '19 02:04 fennectech

The biggest bottleneck is building up the file list though. Not scanning itself.

andres-asm avatar Apr 05 '19 03:04 andres-asm

Okay.

fennectech avatar Apr 05 '19 03:04 fennectech

No need to close it, it's still an idea worth approaching.

andres-asm avatar Apr 05 '19 03:04 andres-asm

Okay :) i figured you ment that the improvement wouldent be worth the effort.

fennectech avatar Apr 05 '19 03:04 fennectech

Also worth noting that no checksum generation is even done for compressed files (zip/7z), because it's already provided in the archive metadata for every file.

ghost avatar Apr 05 '19 20:04 ghost

Similarly on this topic, ARM and SSE 4.x should have hardware implementations of SHA1 and CRC32 too (although not CRC32-C).

LibretroAdmin avatar Sep 03 '22 14:09 LibretroAdmin