Commit r3876: further decrease peak memory and improve speed for global index creation

Version mkgmap-r3876 was committed by gerd on Sun, 02 Apr 2017 further decrease peak memory and improve speed for global index creation Correct the calculation of needed bytes for sort keys so that padding bytes are considered. Now copies are only created when the help to reduce memory. http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=3876

Hi all, maybee it is a good feature, to have the ability to shutdown the computer, after splitter and/or mkgmap is ready . But only , if splitter/mkgmap not ended with a error. I will read the error. something like this : new option - shutdown_pc default=false If shutdown_pc=true and splitter/mkgmap ended succesfull without error then shutdown /s else do nothing endif splitter and mkgmap have often a long runtime till late night.... regards thomas _____
mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

On Sun, Apr 02, 2017 at 09:47:18AM +0200, Thomas Morgenstern wrote:
maybee it is a good feature, to have the ability to shutdown the computer, after splitter and/or mkgmap is ready . But only , if splitter/mkgmap not ended with a error. I will read the error.
This would seem to be better done by a script that invokes splitter and mkgmap. All that splitter and mkgmap would need to do is to follow the convention, that is, finish with exit status 0 when everything succeeds, and with a nonzero exit status in case of an error. Then, the script (or makefile or whatever) would implement the logic. Maybe sample scripts could be provided for both POSIX-like systems and for Microsoft Windows. I do not know about the shells that are available on Microsoft Windows (cmd.exe, PowerShell and whatnot), but on POSIX, something like the following should work, assuming that splitter and mkgmap follow the convention on exit codes: #!/bin/sh set -e # the above causes the script to abort on error wget ... java -jar splitter.jar ... java -jar mkgmap.jar ... # optional step: upload the map files to somewhere sudo shutdown now Best regards, Marko
participants (3)
-
Marko Mäkelä
-
svn commit
-
Thomas Morgenstern