KonaeAkira / raphael-rs

Crafting rotation optimizer / macro generator for Final Fantasy XIV
https://www.raphael-xiv.com/
Apache License 2.0
57 stars 14 forks source link

Tracking issue for performance problems caused by new Dawntrail actions #4

Open KonaeAkira opened 2 months ago

KonaeAkira commented 2 months ago

Any configuration (recipe + stats) that takes longer than 60 seconds to solve should be reported here. Raw solver settings can be obtained by inspecting the console after pressing "Solve".

Things that can be improved:

KonaeAkira commented 2 months ago

53 seconds, ~2.7 GB memory

// Black Star Ring of Crafting (4179, 3900)
let settings = Settings {
    max_cp: 702,
    max_durability: 80,
    max_progress: 6600,
    max_quality: 12000,
    base_progress: 223,
    base_quality: 221,
    initial_quality: 0,
    job_level: 100,
    allowed_actions: ActionMask::from_level(100, true),
};

After PR #8 and PR #9: 39 seconds, ~700 MB memory After 58062350a69145b97c79e07357a7463d4ec77f14: 30 seconds, ~725 MB memory After 6d3fe88cb14ef70f74b7cfb287771ef18fece4b7: 26 seconds, ~510 MB memory

KonaeAkira commented 2 months ago

145 seconds, ~1.9 GB memory

// Black Star Ring of Crafting (4021, 4113)
let settings = Settings {
    max_cp: 703,
    max_durability: 80,
    max_progress: 6600,
    max_quality: 12000,
    base_progress: 214,
    base_quality: 231,
    initial_quality: 0,
    job_level: 100,
    allowed_actions: ActionMask::from_level(100, true),
};

After 6d3fe88cb14ef70f74b7cfb287771ef18fece4b7: 81 seconds, ~700 MB After 96b7ddae6d9cb4c84fb5cdf9994c250dca64fbf9: 16 seconds, ~470 MB

KonaeAkira commented 1 month ago

380 seconds, ~2.3 GB memory

// Mountain Chromite Ingot (3076, 3106, HQ Tsai Tou Vonou)
let settings = Settings {
    max_cp: 616,
    max_durability: 40,
    max_progress: 2000,
    max_quality: 8200,
    base_progress: 217,
    base_quality: 293,
    initial_quality: 0,
    job_level: 90,
    allowed_actions: ActionMask::from_level(90, false, false),
};

After c8eb6ba6a9f050712d7502a0c64f43f57f1436d0: 2 seconds, ~100 MB