我有一个邮政编码列表,我想将其作为某种文本文件保存在我的应用中,以便于查找值。目前我有这个作为PLIST:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict><key>City</key><string>Holtsville</string><key>State</key><string>501</string><key>Zip</key><string>NY</string></dict>
<dict><key>City</key><string>Holtsville</string><key>State</key><string>544</string><key>Zip</key><string>NY</string></dict>
<dict><key>City</key><string>Adjuntas</string><key>State</key><string>601</string><key>Zip</key><string>PR</string></dict>
<dict><key>City</key><string>Aguada</string><key>State</key><string>602</string><key>Zip</key><string>PR</string></dict>
</array>
</plist>
不确定这是否是最好的方法。大约有 50,00 个条目,我希望能够在没有太多开销的情况下快速查找值。