Hi Martin,
The performance improvement from just #1 was dramatic - reading a 1M
feature shapefile went from over 1000 s to 32 s.
Wonder how complex your shapefile is.
It took me hours to create the following 65Mo shapefile, but it has been loaded in 11 s only


        Min     Max     Moyenne         Total
Pts     4       398604  3492.4928774928776      3677595
Trous   0       4804    37.41310541310541       39396
Composants      1       71      1.8034188034188035      1899
Surface 0.041523783176671714 1.1578715743783949E7 93654.73981537568 9.86184410255906E7 Longueur 1.553765588506568 456680.2181261205 4068.589468188681 4284224.710002681


Michaël


Wow, your polygon should be really complex !
Will do some test and I'll report my results on this list.

Michaël
----------------------------

PolygonHandler change:

               ((ArrayList) holesForShells.get(findIndex(shells,
minShell))).add(testHole);


         /**
          * Finds a object in a list. Should be much faster than indexof
          *
          * @param list
          * @param o
          * @return
          */
         private static int findIndex(ArrayList list, Object o)
         {
           int n = list.size();
           for (int i = 0; i<   n; i++) {
             if (list.get(i) == o)
               return i;
           }
           return -1;
         }



------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to