It would be significantly better to save image files in reverse order

Bug #1819712 reported by Volodya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
simple-scan (Ubuntu)
New
Undecided
Unassigned

Bug Description

Use case:
Scan enough pages for your XUbuntu to start dumping memory into swap
Save as image files

What happens:
You first wait for the last pages to be swapped out and first pages converted
You then wait for the opposite thing

What would be significantly better:
You can write later pages first, using the fact that it is already in the memory at the end

I believe that it can be done as easily as changing the line 224 in book.vala

from:
    for (var i = 0; i < n_pages; i++)
to:
    for (var i = n_pages; i >= ; --i)

But i cannot test it, being unable to compile

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: simple-scan 3.28.0-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-46.49-generic 4.15.18
Uname: Linux 4.15.0-46-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Mar 12 17:51:03 2019
InstallationDate: Installed on 2018-11-24 (107 days ago)
InstallationMedia: Xubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
MachineType: ASUSTeK COMPUTER INC. N76VB
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.15.0-46-generic root=/dev/mapper/xubuntu--vg-root ro quiet splash vt.handoff=1
SourcePackage: simple-scan
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/24/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: N76VB.205
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: N76VB
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrN76VB.205:bd05/24/2013:svnASUSTeKCOMPUTERINC.:pnN76VB:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnN76VB:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.family: N
dmi.product.name: N76VB
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
Volodya (volodya) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.