Skip to content

Option to export read-optimized PRP files #448

@dpogue

Description

@dpogue

(I realize the implementation of this would probably need to happen in libHSPlasma, but it makes sense to discuss it - at least as an initial feature request concept - in the context of Korman)

In the H-uru/Plasma repo, there is a plPageOptimizer tool that sorts the object data (but not the keyring!) in the PRP file based on the expected order in which data will need to be loaded. This prevents the ResManager from needing to seek all over the file when reading and reffing objects.

It appears that content for the MOULa server is optimized by this tool as part of putting it on the file server, but that causes differences (in order but not content) between the exported files and the server-delivered files. One option would be to remember to run plPageOptimizer over all the content before committing it to git repositories, but that would be an extra manual step that people would definitely forget to do.

A better option might be for korman to always export PRP files that have already been optimized. I suspect (based on plPageOptimizer being its own tool and not built-in to the PlasmaMax plugin) that this would have to be done as an extra step at the end of the export process, but I don't think there's any reason libHSPlasma couldn't implement the same object sorting method.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions