logo separator

[mkgmap-dev] [PATCH v2] LocationHook speedup

From Henning Scholland osm at aighes.de on Sat Dec 31 14:10:04 GMT 2011

Am 31.12.2011 14:58, schrieb Gerd Petermann:
> I used another way to optimize that part. On my machine, the list() 
> method is much faster than listFiles():
>
>             String [] boundaryFileNames = boundaryDir.list();
>             boolean foundBndFile = false;
>             for (String s: boundaryFileNames){
>                 if (s.endsWith(".bnd")) {
>                     foundBndFile = true;
>                     break;
>                 }
>             }
>             if (!foundBndFile) {
>                 log.error("Disable LocationHook because boundary 
> directory contains files. Dir: "
>                         + boundaryDir);
>                 return false;
>             }
>
>
> Gerd
Hi, you missed a "no" in the errormessage ;)

Henning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20111231/4ac655f6/attachment.html 


More information about the mkgmap-dev mailing list