[Routing] How to load OsmBinDataSet dataset to memory and reuse it during next sessions

Marcus Wolschon Marcus at Wolschon.biz
Wed Sep 1 12:43:51 BST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

See the sourceforge page.
They explain the SVN URIs.

Marcus


"Oleg Demchenko" <oleg.demchenko at gmail.com> schrieb:

>Dear Marcus.
>Thank you for your response.
>
>I've created H2 database and loading data from there. Performance is much
>better.
>
>Marcus I'm using currently binary traveling salesman.jar with version
>1.0.3-RC1
>How to download  latest sources and build a project on my side?
>I see via http
>http://travelingsales.svn.sourceforge.net/viewvc/travelingsales/trunk/traveling_salesman/,
>
>but can't upload using my SVN repobrowser for windows.
>
>I would like to debug method TurnRestrictedMultiTargetDijkstraRouter route
>method on my database.
>
>
>
>
>2010/8/27 Marcus Wolschon <Marcus at wolschon.biz>
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Am 27.08.2010 19:50, schrieb Oleg Demchenko:
>>
>> > Dear all.
>> >
>> > I've imported country OSM file to OSM Binary format and more or
>> > less successfully finding a route using travelingsalesman class
>> > and osmbin as dataset. Performance is much faster than with XML
>> > (OSM file), but there are still some points for improvement.
>>
>> OsmBin is outdated and replaced by H2DataSet.
>>
>> > Well, each time when program call method like .getNearestNode(),
>> > I'm getting exception (warning)
>> >
>> > /org.openstreetmap.osm.data.osmbin.FixedRecordFile <init> INFO:
>> > Memory-maping the file failed in
>> > org.openstreetmap.osm.data.osmbin.IDIndex File - using
>> > conventional io instead/
>> >
>>
>> That is okay and means that your file is larger then the Address-Range
>> you supply on
>> the Java-Command-Line for Memory-Mapped IO. So the file cannot be
>> mapped into memory
>> and is accessed using conventional IO.
>> That is about 10x slower for such random access then memory mapped IO.
>> Thus the strong warnings.
>>
>> The recommed command-line for Sun Java is:
>> *java -XX:MaxDirectMemorySize=512M -jar traveling_salesman.jar*
>>
>> (Documented in travelingsales.sourceforge.net under
>> "using Traveling Salesman"
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.9 (GNU/Linux)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAkx4DpoACgkQf1hPnk3Z0cSIXACeKDNQ91ZedZ9Uhm87/zVkNiHN
>> QhwAn2FE/fJnLeaYgsvv+5DnWX/oEEHG
>> =19wU
>> -----END PGP SIGNATURE-----
>>
>>
>> _______________________________________________
>> Routing mailing list
>> Routing at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/routing
>>
>>
>
>
>--
>All the best
>               Oleg Demchenko
>_______________________________________________
>Routing mailing list
>Routing at openstreetmap.org
>http://lists.openstreetmap.org/listinfo/routing
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.7

iI0EAREIAE0FAkx+PHZGHE1hcmN1cyBXb2xzY2hvbiAoZW1haWwtYWRyZXNzIGZv
ciBidXNpbmVzcy11c2UpIDxNYXJjdXNAV29sc2Nob24uYml6PgAKCRA1p5EQQT42
dvLCAKDpjJmSDUzqZEMoNVtf6giezhk0MgCeJL6ZdnCEdPQrLr0dEFk6bROrkpc=
=XaGT
-----END PGP SIGNATURE-----




More information about the Routing mailing list