看到别人的代码,有个ClassMap: THashedStringList. 不懂. 查了一下帮助, 说是可以加速字符串定位(较TStringlist), 然后查了一下TStringlist, 感觉Stringlist就是一个字符串数组......
不知道我的理解正不正确,如果是正确的,那么这个Stringlist和字符串数组又什么区别.
如果正确,请各位老大指明.....

解决方案 »

  1.   

    高手们到哪去了? 不至于没有人知道stringlist吧...指导一下吧...
      

  2.   

    UnitIniFilesDescriptionTHashedStringList is a string list that uses a hash table internally to speed the process of locating strings. It is used internally by TMemIniFile to manage the strings from an INI file, but can be used in the same way as any other string list. By using THashedStringList instead of TStringList, you can improve performance when the list contains a large number of strings.
      

  3.   

    TStringlist内部实际可以看作一个字符串数组,但是因为它通过封装成为了一个类,就可以利用类的方法轻松完成很多公司,比如排序、插入、删除等。而直接使用数组则比较麻烦。THashedStringList是TStringList的一个子类,主要是在数据量特别巨大时采用(因此一般不用),它内建哈西表,可以提高操作速度。————————————————————————————————————
    宠辱不惊,看庭前花开花落,去留无意;毁誉由人,望天上云卷云舒,聚散任风。
    ————————————————————————————————————
      

  4.   

    Thashedstringlist是用来支持哈希表的,关于TStringList上面的老大说的很清楚了!