This applies .NET.
I am looking to write a spatial mapping application. There will be several polygons in memory at once (on the order of 30 - 50 polygon). each polgon has a collection of LatLong points. the collection can range from 10 to 200 per polygon. However, there are alot of calculations that will be done using the points, which is why (for performance) I want to make the LatLong a struct. However I am weary do to the large number of LatLong that will be in memory. Any insight to this will be appreciated.
To recap: I want to know if I shold make the LatLong a struct because I want performance ont the calculation, or a class because of the number of latLongs that will be in memory at one.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…