Claudius-Appel / duflor

plant-leaf/root analysis via image quantisation using R and cImg via imager-package.
https://claudius-appel.github.io/duflor/
Other
0 stars 0 forks source link

Efficiency #9

Open Claudius-Appel opened 2 months ago

Claudius-Appel commented 2 months ago

Superthread for various performance-related issues, mostly as a sketch pad prior to making exclusive issues

See: https://github.com/Claudius-Appel/duflor/labels/efficiency

Claudius-Appel commented 2 months ago

Translate hsv_boundary check to Cpp via RCpp package and evaluate performance on n=40: What/how much do I gain in doing so?

Edit: Conversion was successful, still must be committed. Code is simple to read, but must be documented still. Both internally and for roxygen.

Double-check that the code is actually doing what it is supposed to.

fixed in ecef350329d1ca337970a85066e454643fdffaf0

Claudius-Appel commented 2 months ago

optimise load_image(): it's the biggest bottle-neck.

However, also the one hardest to optimise, because I am sure as hell not going to create my own parser.

So I would need to find a C++-based loader that outputs in the format I expect.

Consider:

Claudius-Appel commented 2 months ago

Consider:

Benchmark efficiency of computing adjacencies:

Claudius-Appel commented 2 months ago

Consider: image-by-image analysis:

Given that RAM is a limited resource I should consider whether it is better / more performance to do the following:

See > Claudius-Appel/duflor#17

Claudius-Appel commented 2 months ago

In the cpp- pixel count function setup, currently:

Instead:

Prereqs:

See > https://github.com/Claudius-Appel/duflor/issues/16

Claudius-Appel commented 2 months ago

Before doing more shit, wait for performance-tests on BexBT's end.

Then, consider carefully how much more efficient you actually want this to be, that is how slow is acceptably slow for us? There are more pressing matters, after all (#15)

Claudius-Appel commented 2 months ago

Determine performance gain of loading via RbioFormats:read.image(), see Claudius-Appel/duflor#19