私は本質的に名前と値のペアのギザギザの配列を持っています - これから一意の名前の値のセットを生成する必要があります。ジャグ配列は約 86,000 x 11 の値です。名前と値のペア (単一の文字列 "name=value" または KeyValuePair などの特殊なクラス) をどのように格納する必要があるかは問題ではありません。
追加情報: 40 の個別の名前と多数の個別の値があります。おそらく 10,000 の値の領域にあります。
私は C# と .NET 2.0 を使用しています (パフォーマンスが非常に悪いため、ジャグ配列全体を SQL データベースにプッシュし、そこから別の選択を行う方がよいのではないかと考えています)。
以下は、現在使用しているコードです。
List<List<KeyValuePair<string,string>>> vehicleList = retriever.GetVehicles();
this.statsLabel.Text = "Unique Vehicles: " + vehicleList.Count;
Dictionary<KeyValuePair<string, string>, int> uniqueProperties = new Dictionary<KeyValuePair<string, string>, int>();
foreach (List<KeyValuePair<string, string>> vehicle in vehicleList)
{
foreach (KeyValuePair<string, string> property in vehicle)
{
if (!uniqueProperties.ContainsKey(property))
{
uniqueProperties.Add(property, 0);
}
}
}
this.statsLabel.Text += "\rUnique Properties: " + uniqueProperties.Count;