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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

svn commit
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
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

new option shutdown_pc ?

Thomas Morgenstern
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
> [hidden email]
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>
>
>

_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: new option shutdown_pc ?

Marko Mäkelä
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
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev